langchain/templates/rag-chroma-private
David Duong d39b4b61b6
Batch apply poetry lock --no-update for all templates (#12531)
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>
2023-10-30 15:18:53 -07:00
..
docs Templates (#12294) 2023-10-25 18:47:42 -07:00
rag_chroma_private Minor template cleaning (#12573) 2023-10-30 11:27:44 -07:00
tests Templates (#12294) 2023-10-25 18:47:42 -07:00
LICENSE Templates (#12294) 2023-10-25 18:47:42 -07:00
poetry.lock Batch apply poetry lock --no-update for all templates (#12531) 2023-10-30 15:18:53 -07:00
pyproject.toml Templates (#12294) 2023-10-25 18:47:42 -07:00
rag_chroma_private.ipynb Formatting on ntbks (#12576) 2023-10-30 11:32:31 -07:00
README.md various templates improvements (#12500) 2023-10-28 22:13:22 -07:00

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.