Parent Document Retriever in Xata
Hello. Is it possible to organize Parent Document Retriever in Xata? https://python.langchain.com/v0.1/docs/modules/data_connection/retrievers/parent_document_retriever/
Parent Document Retriever | 🦜️🔗 LangChain
When splitting documents for retrieval, there are often conflicting desires:
2 Replies
Hi, I gave it a try. Looks like ParentDocumentRetriever works just fine with Xata as the vectorstore.
Just need to create a string column "doc_id" in Xata to support the generated child document ids - on top of the standard "embedding" (vector), "content" (text) and "source" (string) columns.
Here's an example:
Thank you!!!