1 comment

[ 3.3 ms ] story [ 15.3 ms ] thread
In this video I have demonstrated and shown how to convert a search-related question asked to a @Slackhq Chatbot into a search with a pre-filter applied to make the search results more relevant.

I have used @LangChain 's Self-Querying feature that can convert a question like this:

"Can you find me that thread where Vinit Agrawal talked about AI Safety on the General channel?"

to

"from: @VinitAgrawal88 in:#general AI Safety"

This will reduce the search space significantly and improve the quality and relevance of search results.

Read more about LangChain's Self-Querying Retriever here: https://python.langchain.com/docs/modules/data_connection/re...