-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract filter instructions from query #13
Comments
@SubhadityaMukherjee and @Taniya-Das will both explore this work. Subha will focus more on post-hoc filtering, and Taniya on bringing the filters to a database level. Both have strengths and weaknesses, and we want to explore a little bit their effects in practice. |
As an update, initial post-hoc filtering was added for some filters. UI and further improvements still to be done. |
@Taniya-Das has also created a flow where filters are extracted in a way that these filters may be applied at the database level. She will try to integrate it with the current tool. |
The structuring-query script can be found in this branch - https://github.com/openml-labs/ai_search/tree/feature/structuring_query Example - the structured filters can then be translated into the appropriate format. |
Extend the pipeline to explicitly extract filter instructions from the natural language prompt.
For example:
"Give me small datasets that have data on flowers."
could translate to "Give flower datasets" and use filters "fewer than 10k rows" and "fewer than 10 features".
The first would continue to the RAG pipeline, and the second two filters would be applied on the returned results and shown directly in the web UI.
The text was updated successfully, but these errors were encountered: