Requirements
| Requirement | Version |
|---|---|
| Python | 3.9 or higher |
| Pinecone | Account with an index created |
| Supabase | Empty project (tables created automatically) |
| LLM provider | OpenAI, Anthropic, Gemini, Mistral, Cohere, or local Ollama |
Install LangChat
Install uv (recommended)
uv is a fast Python package manager that replaces pip and venv.Virtual environment
Environment variables
Create a.env file in your project root. All providers read credentials automatically — you never pass keys directly in code.
.env
.env in your script with one line:
Pinecone setup
You need a Pinecone index before LangChat can store or retrieve documents.- Sign up at pinecone.io
- Create a Serverless index with these settings:
- Dimensions:
3072fortext-embedding-3-large(default) or1536fortext-embedding-3-small - Metric:
cosine
- Dimensions:
- Add
PINECONE_API_KEYto your.env
Supabase setup
LangChat creates its tables automatically — you just need a project.- Create a project at supabase.com
- Copy Project URL and anon key (or
service_rolekey for server-side usage) - Add
SUPABASE_URLandSUPABASE_KEYto your.env
chat_history— stores conversation messagesrequest_metrics— stores latency and error data
Verify installation
Next steps
- Quick Start — your first chatbot in 5 minutes
- Configuration — configure every provider
