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.<p>I have used @LangChain 's Self-Querying feature that can convert a question like this:<p>"Can you find me that thread where Vinit Agrawal talked about AI Safety on the General channel?"<p>to<p>"from: @VinitAgrawal88 in:#general AI Safety"<p>This will reduce the search space significantly and improve the quality and relevance of search results.<p>Read more about LangChain's Self-Querying Retriever here: <a href="https://python.langchain.com/docs/modules/data_connection/retrievers/self_query/" rel="nofollow noreferrer">https://python.langchain.com/docs/modules/data_connection/re...</a>