working_enhanced_retriever ========================== .. py:module:: working_enhanced_retriever .. autoapi-nested-parse:: Working Enhanced MCP Retriever - Parent-Child + Self-Query Combined. This demonstrates the key pattern: metadata on child chunks enables self-query filtering while returning full parent documents. Classes ------- .. autoapisummary:: working_enhanced_retriever.WorkingEnhancedRetriever Functions --------- .. autoapisummary:: working_enhanced_retriever.main Module Contents --------------- .. py:class:: WorkingEnhancedRetriever Working implementation of combined parent-child + self-query retriever. .. py:method:: create_self_query_on_chunks(llm, query: str, k: int = 5) Create self-query retriever that operates on child chunks. .. py:method:: enhanced_query(llm, query: str, k: int = 5) :async: The magic: Use self-query on chunks, return parent documents. .. py:method:: setup() Set up the enhanced retriever. .. py:attribute:: child_vectorstore :value: None .. py:attribute:: doc_loader .. py:attribute:: embeddings .. py:attribute:: parent_retriever :value: None .. py:attribute:: parent_store .. py:function:: main() :async: Run working example.