Skip to content

Environment variables ​

ragX loads a .env file from the working directory or any parent before reading these. Keys are read by name and never logged.

Provider keys ​

VariableUsed by
OPENAI_API_KEYopenai:
OPENAI_BASE_URLopenai: against any OpenAI-compatible endpoint that takes a key
ANTHROPIC_API_KEYanthropic:
GOOGLE_API_KEY (or GEMINI_API_KEY)google:
GROQ_API_KEYgroq:
TOGETHER_API_KEYtogether:
CEREBRAS_API_KEYcerebras:
FIREWORKS_API_KEYfireworks:

Local models ​

VariableDefaultMeaning
RAGX_VLLM_URLhttp://localhost:8001/v1the vLLM (or other OpenAI-compatible) server for vllm:
RAGX_VLLM_API_KEYEMPTYits key, when the server requires one
RAGX_HF_DEVICEcuda:0 when available, else cpudevice for hf: models
RAGX_MODELhf:Qwen/Qwen3.5-4Bthe default model when no provider key is set

Behaviour ​

VariableDefaultMeaning
RAGX_MAX_RETRIES8retries on rate limits, overloads and network errors, with exponential backoff
RAGX_SEMANTIC_MODELall-MiniLM-L6-v2embedder of the classic agent's SEMANTIC tool

Released under the Apache 2.0 License.