You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/templates/sql-llama2
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>
8 months ago
..
sql_llama2 notebook fmt (#12498) 8 months ago
tests Templates (#12294) 8 months ago
README.md Update SQL templates (#12464) 8 months ago
poetry.lock Batch apply `poetry lock --no-update` for all templates (#12531) 8 months ago
pyproject.toml Templates (#12294) 8 months ago
sql_llama2.ipynb notebook fmt (#12498) 8 months ago

README.md

SQL with LLaMA2

This template allows you to chat with a SQL database in natural language using LLaMA2.

It is configured to use Replicate.

But, it can be adapted to any API that support LLaMA2, including Fireworks and others.

See related templates sql-ollama and sql-llamacpp for private, local chat with SQL.

Set up SQL DB

This template includes an example DB of 2023 NBA rosters.

You can see instructions to build this DB here.

LLM

This template will use a Replicate hosted version of LLaMA2.

Be sure that REPLICATE_API_TOKEN is set in your environment.