|
| 1 | +# ============================================================ |
| 2 | +# LongParser Environment Configuration |
| 3 | +# Copy this file to .env and fill in your values. |
| 4 | +# NEVER commit .env to version control. |
| 5 | +# ============================================================ |
| 6 | + |
| 7 | +# ── Database ───────────────────────────────────────────────── |
| 8 | +LONGPARSER_MONGO_URL=mongodb://localhost:27017 |
| 9 | +LONGPARSER_DB_NAME=longparser |
| 10 | + |
| 11 | +# ── Job Queue (Redis / ARQ) ─────────────────────────────────── |
| 12 | +LONGPARSER_REDIS_URL=redis://localhost:6379 |
| 13 | + |
| 14 | +# ── File Storage ────────────────────────────────────────────── |
| 15 | +LONGPARSER_UPLOAD_DIR=./uploads |
| 16 | + |
| 17 | +# ── LLM Provider ───────────────────────────────────────────── |
| 18 | +# One of: openai | gemini | groq | openrouter |
| 19 | +LONGPARSER_LLM_PROVIDER=openai |
| 20 | +LONGPARSER_LLM_MODEL=gpt-4o |
| 21 | + |
| 22 | +# ── API Keys ────────────────────────────────────────────────── |
| 23 | +OPENAI_API_KEY=sk-... |
| 24 | +GOOGLE_API_KEY= # Required for gemini provider |
| 25 | +GROQ_API_KEY= # Required for groq provider |
| 26 | +OPENROUTER_API_KEY= # Required for openrouter provider |
| 27 | + |
| 28 | +# ── Embedding ───────────────────────────────────────────────── |
| 29 | +# Provider: huggingface | openai |
| 30 | +LONGPARSER_EMBED_PROVIDER=huggingface |
| 31 | +LONGPARSER_EMBED_MODEL=BAAI/bge-base-en-v1.5 |
| 32 | + |
| 33 | +# ── Vector Store ────────────────────────────────────────────── |
| 34 | +# One of: chroma | faiss | qdrant |
| 35 | +LONGPARSER_VECTOR_DB=chroma |
| 36 | +QDRANT_URL=http://localhost:6333 # Required only for qdrant |
| 37 | +QDRANT_API_KEY= # Required only for Qdrant Cloud |
| 38 | + |
| 39 | +# ── OCR & Extraction ───────────────────────────────────────── |
| 40 | +# OCR backend: easyocr | tesseract | rapidocr |
| 41 | +LONGPARSER_OCR_BACKEND=easyocr |
| 42 | +LONGPARSER_OCR_USE_GPU=false |
| 43 | + |
0 commit comments