Replies: 1 comment 1 reply
-
Yes, it is possible to pass multiple retrievers to the context in the chain in LangChain JS. Your approach of combining results from the vector store and a queryChain created for a SQL query to a database file is a valid concept. However, the provided code does not directly show the integration with a SQL database or the use of a To achieve the combination of vector store results and SQL query results, you would need to extend the logic beyond what is shown. This could involve:
In LangChain JS, the For more details, you can refer to the following examples in the LangChain JS repository: A simpler or more correct solution would depend on the specific requirements of your application, such as how you intend to combine the results and what criteria are used for retrieval from both sources. Sources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Hey guys,
turns out that LLMs are terrible at getting information from a CSV file so I resorted to turning uploaded CSV files to sqlite files and use a text to Query to create a queryChain that will basically send a sql query to the db file.
but I'd still like to get data from the vector store too and combine the result of both to pass to the llm.
Do you have a simpler solution? am i wrong about CSV files?
System Info
Langchain
Beta Was this translation helpful? Give feedback.
All reactions