chat-langchain
chat-langchain copied to clipboard
Extract metada from query and use it for pre-filtering in Weaviate
I want to extract "title preference" from user query. For example, user is interested in documents for which the title has "usa" in it.
I want to extact this during using llm during the query phase and use it for pre-filtering in weaviate. How can I do this ?
I see that the metadata_extractor is attached in the ingest.py . But I want to use metadata_extractor during query phase also.