-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RAG] Add example for RAG with Langchain.js (#550)
Add a simple example of RAG using Langchain.js, following [its cookbook](https://js.langchain.com/v0.1/docs/expression_language/cookbook/retrieval/). We use WebLLM for both embedding and LLM, within a single engine. There are many possible ways to achieve RAG (e.g. degree of integration with Langchain, using WebWorker, etc.). We only provide a minimal example here.
- Loading branch information
1 parent
c7a7285
commit b598fc1
Showing
2 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters