CLI
RAGLight ships with a full command-line interface. Three commands cover the main use cases:raglight chat
Starts an interactive terminal chat session backed by a RAG pipeline. On first launch, a setup wizard guides you through choosing your vector store, embeddings, and LLM. Subsequent runs can skip the wizard entirely via environment variables.
- Vector database — Chroma or Qdrant, local path or remote host
- Embeddings — provider and model
- LLM — provider, model, and API base URL
- Knowledge source — local folder or GitHub repository
- Indexing — option to reuse an existing index
- Chat loop — type your questions, get streamed responses
Skip the wizard with env vars
Create a.env file (or export env vars) and the wizard is bypassed entirely:
.env
Commands in the chat loop
raglight agentic-chat
Same as raglight chat, but uses the Agentic RAG pipeline — the LLM can call tools, reason in multiple steps, and go beyond simple retrieval.
Agentic mode requires an LLM that supports tool calling (e.g.
llama3.1, gpt-4o, mistral-large).raglight serve
Starts a FastAPI REST API exposing your RAG pipeline over HTTP. Entirely configured by environment variables — no Python code required.
--ui to also launch the Streamlit chat interface:
CLI options
Common environment variables
All three commands read the sameRAGLIGHT_* environment variables:
Summary
raglight chat— terminal RAG chat with streaming markdown outputraglight agentic-chat— same but with tool-calling agent moderaglight serve— REST API; add--uifor the web chat interface- All three share the same
RAGLIGHT_*env vars — one.envfile for everything