#How to use openai file search with metadata filtering?
1 messages · Page 1 of 1 (latest)
Hi @lilac grotto. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but based on the provided knowledge sources, there is no specific information or instructions on how to use OpenAI's file search with metadata filtering. The sources mention the use of the file_search tool and its capabilities, but they do not provide details on how to implement metadata filtering.
The file_search tool is designed to help extract the right data from your files and augment the model’s responses. It rewrites user queries to optimize them for search, breaks down complex user queries into multiple searches it can run in parallel, runs both keyword and semantic searches across both assistant and thread vector stores, and reranks search results to pick the most relevant ones before generating the final response (source (https://platform.openai.com/docs/assistants/tools/file-search)).
However, the sources do mention some known limitations of the file_search tool, one of which is the lack of support for deterministic pre-search filtering using custom metadata. This suggests that as of the time the sources were written, metadata filtering was not yet supported (source (https://platform.openai.com/docs/assistants/tools/file-search)).