Parent Document Retriever
llmsathina-rag-cookbooksadvanced_rag_techniquesopenaiAItutorialsChromaDBcookbooksfaissqdrantLLMPythonpineconeraglangchainweaviate
Export
Parent Document Retriver
Parent Document retriever is a technique where large documents are split into smaller pieces, called "child chunks." These chunks are stored in a way that lets the system find and compare specific parts of a document with a user’s query. The large document, or "parent," is still kept but is only retrieved if one of its child chunks is relevant to the query.
Reference: Parent Document Retriver
Initial Setup
[ ]
[ ]
Indexing
[ ]
[ ]
Parent Child Text Spliting
[ ]
[ ]
Retriever
[ ]
[ ]
RAG Chain
[ ]
[ ]
[ ]
'Nicolas Cage played the role of Ben Sanderson, the alcoholic screenwriter, and Elisabeth Shue played the role of Sera, the sex worker, in the movie "Leaving Las Vegas."'
Preparing Data for Evaluation
[ ]
[ ]
[ ]
[ ]
[ ]
Evaluation in Athina AI
We will use Context Recall eval here. It Measures the extent to which the retrieved context aligns with the expected response. Please refer to our documentation for further details
[ ]
[ ]
[ ]
evaluating with [context_recall]
100%|██████████| 1/1 [00:01<00:00, 1.49s/it]
You can view your dataset at: https://app.athina.ai/develop/3e8a5c23-5ddc-4dd3-ae9a-0790587da1f5