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-ollama
Erick Friis 4b16601d33
Format Templates (#12396)
11 months ago
..
sql_ollama Format Templates (#12396) 11 months ago
tests Templates (#12294) 11 months ago
README.md Templates (#12294) 11 months ago
nba_roster.db Templates (#12294) 11 months ago
poetry.lock Templates (#12294) 11 months ago
pyproject.toml Templates (#12294) 11 months ago

README.md

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.

Installation

# from inside your LangServe instance
poe add sql-ollama