chat-langchain icon indicating copy to clipboard operation
chat-langchain copied to clipboard

Extract metada from query and use it for pre-filtering in Weaviate

Open shanumas opened this issue 6 months ago • 2 comments

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.

shanumas avatar Jul 24 '24 21:07 shanumas