mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
d39b4b61b6
Ran the following bash script for all templates ```bash #!/bin/bash set -e current_dir="$(pwd)" for directory in */; do if [ -d "$directory" ]; then (cd "$directory" && poetry lock --no-update) fi done cd "$current_dir" ``` Co-authored-by: Bagatur <baskaryan@gmail.com> |
||
---|---|---|
.. | ||
docs | ||
rag_chroma_private | ||
tests | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
rag_chroma_private.ipynb | ||
README.md |
Private RAG
This template performs privae RAG (no reliance on external APIs) using:
- Ollama for the LLM
- GPT4All for embeddings
LLM
Follow instructions here to download Ollama.
The instructions also show how to download your LLM of interest with Ollama:
- This template uses
llama2:7b-chat
- But you can pick from many here
Set up local embeddings
This will use GPT4All embeddings.
Chroma
Chroma is an open-source vector database.
This template will create and add documents to the vector database in chain.py
.
By default, this will load a popular blog post on agents.
However, you can choose from a large number of document loaders here.