An open API service indexing awesome lists of open source software.

https://github.com/humankernel/rag-next-langchain

Retrieval Augmented Generation
https://github.com/humankernel/rag-next-langchain

Last synced: 15 days ago
JSON representation

Retrieval Augmented Generation

Awesome Lists containing this project

README

          

# 📃 RAG - Next + Langchain

This is a RAG app. In other words a chatbot with a local modal that response using your documents an only your documents

## Getting Started

### Start Ollama

```sh
# create the model
ollama create -f '.\Modelfile - Llama2'

# the machine that runs ollama have to set this env variables
OLLAMA_HOST = 0.0.0.0
OLLAMA_ORIGINS = *
OLLAMA_KEEP_ALIVE = 30

# run ollama
ollama serve
```

### Start Postgres (pg-vector)

```sh
# download pv-vector (w/ vpn)
docker pull ankane/pgvector:latest

# move to project folder
docker compose up -d
```

### Start webpage

```sh
pnpm dev

# or
pnpm dev --turbo

# or
npx next dev --turbo
```

## Backups

```sh
# install cron, rsync in archlinux
sudo pacman -S cronie rsync

# Para programar la ejecución diaria de tu script, edita el archivo crontab:
crontab -e

# Esto le dice a cron que ejecute el script backup_incremental.sh todos los días a las 2:00 AM.
0 2 * * * /ruta/a/tu/script/backup.sh
```