langchain/templates/sql-ollama
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
..
sql_ollama notebook fmt (#12498) 2023-10-29 15:50:09 -07:00
tests 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 Update llama.cpp and Ollama templates (#12466) 2023-10-27 16:54:54 -07:00
README.md Update SQL templates (#12464) 2023-10-27 16:34:37 -07:00
sql-ollama.ipynb notebook fmt (#12498) 2023-10-29 15:50:09 -07:00

SQL with LLaMA2 using llama.cpp

This template allows you to chat with a SQL database in natural language in private, using an open source LLM.

Set up Ollama

Follow instructions here to download Ollama.

Also follow instructions to download your LLM of interest:

  • This template uses llama2:13b-chat
  • But you can pick from many LLMs here

Set up SQL DB

This template includes an example DB of 2023 NBA rosters.

You can see instructions to build this DB here.