Skip to content

Configuration

Copy .env.example to .env and customize.

LLM Settings

VariableDescriptionDefault
LLM_PROVIDERopenai, anthropic, aliyun, volcengine, ollama, or mockmock
OPENAI_API_KEYOpenAI API key
ANTHROPIC_API_KEYAnthropic API key
ALIYUN_API_KEYAliyun Bailian API key
VOLCENGINE_API_KEYVolcengine Doubao API key
LLM_MODEL_NAMEModel name overrideProvider default
LLM_TEMPERATURE0.0 - 2.00.7
LLM_MAX_TOKENSMax response tokens4096

Embedding Settings

VariableDescriptionDefault
EMBEDDING_PROVIDERlocal (GPU/CPU) or apilocal
EMBEDDING_MODELHuggingFace modelBAAI/bge-m3
RERANKER_MODELReranking modelBAAI/bge-reranker-v2-m3
EMBEDDING_API_KEYAPI key (if using API provider)

GPU Management

VariableDescriptionDefault
GPU_MODEconservative, balanced, aggressivebalanced
MODEL_TTL_SECONDSAuto-unload idle models after N seconds300
MINERU_AUTO_MANAGEAuto start/stop MinerU subprocesstrue
MINERU_CONDA_ENVConda environment name for MinerUmineru

Data & Storage

VariableDescriptionDefault
DATABASE_URLSQLite database pathsqlite:///./data/omelette.db
DATA_DIRBase path for PDFs, OCR, ChromaDBdata
CHROMA_PERSIST_DIRChromaDB vector store path{DATA_DIR}/chroma

PDF Processing

VariableDescriptionDefault
PDF_PARSERauto, mineru, or pdfplumberauto
OCR_ENGINEpaddle or tesseractpaddle
MINERU_API_URLMinerU service URLhttp://localhost:8010

Academic Sources

VariableDescriptionDefault
SEMANTIC_SCHOLAR_API_KEYHigher rate limits (100 req/s)
S2_API_BASESemantic Scholar APIhttps://api.semanticscholar.org/graph/v1
CROSSREF_API_BASECrossref APIhttps://api.crossref.org

Server

VariableDescriptionDefault
APP_ENVdevelopment or productiondevelopment
APP_SECRET_KEYSession signing keychange-me-to-a-random-secret-key
FRONTEND_URLCORS allowed originhttp://localhost:3000
CORS_ORIGINSComma-separated CORS originshttp://localhost:3000

Mock Mode

When LLM_PROVIDER=mock, Omelette returns preset responses. No API keys, no external calls. Use this for:

  • Development without API costs
  • Testing and CI
  • Exploring the UI before configuring providers

The mock provider returns sensible placeholder data for all LLM-dependent features.

Released under the MIT License.