CsabaConsulting / ThruThinkCohereWeaviateChat

Cohere and Weaviate powered ThruThink support chat on Streamlit
https://thruthinksupport.streamlit.app/
MIT License
1 stars 3 forks source link

Simplify implementation with LangChain's MultiQueryRetriever #6

Closed MrCsabaToth closed 9 months ago

MrCsabaToth commented 9 months ago

See https://www.youtube.com/watch?v=VFf8XJUIHnU https://python.langchain.com/docs/modules/data_connection/retrievers/MultiQueryRetriever https://github.com/langchain-ai/langchain/issues/9231

MrCsabaToth commented 9 months ago

https://api.python.langchain.com/en/latest/_modules/langchain/retrievers/multi_query.html#MultiQueryRetriever looks to be a pretty thin wrapper. I have to think about if it'd bring any reasonable improvement (in code complexity or other ways)

MrCsabaToth commented 9 months ago

We can potentially prompt engineer the variation prompt though along the lines of https://github.com/pinecone-io/examples/blob/master/learn/generation/langchain/handbook/10-langchain-multi-query.ipynb