What is LangChat?
LangChat is a Python library that turns the complex task of building a production-ready RAG chatbot into a few lines of code.What’s included
6 LLM providers
OpenAI, Anthropic, Gemini, Mistral, Cohere, and local Ollama — all with automatic credential loading from environment variables
RAG pipeline
Pinecone vector search + Flashrank reranking + contextual conversation prompts, pre-configured and ready to use
Session management
Per-user, per-platform conversation history stored in Supabase — survives server restarts
Document indexing
Index PDFs, Markdown, CSV, and more with one call:
lc.index("docs/")REST API
One-line FastAPI server with a built-in chat UI:
create_app(llm=..., vector_db=..., db=...)Typed responses
ChatResponse dataclass — response.text, if response:, print(response). No more dict key guessing.