Issue reported here: https://github.com/langchain-ai/langserve/issues/535#issuecomment-2002636467.
Not sure if it's from community or integration, but would be good to make sure that document metadata is JSON serializable when returned from a mongo retriever