- extraction-service: Fastify scaffold (port 4005) with extract/tasks modules - src/lib/: config, errors, cosmos, product-config, python-bridge - src/modules/extract/: types (Zod schemas), routes (POST /extract, batch, models) - src/modules/tasks/: types, repository (Cosmos CRUD), routes (CRUD endpoints) - Python sidecar: FastAPI app, LangExtract wrapper, models, task registry - @bytelyst/extraction package: types, client factory, index exports - Both pnpm build pass clean
30 lines
1.6 KiB
Plaintext
30 lines
1.6 KiB
Plaintext
# ── Extraction Service Environment Variables ─────────────────────
|
|
# Copy to .env and fill in real values.
|
|
|
|
# ── Service ──────────────────────────────────────────────────────
|
|
PORT=4005
|
|
HOST=0.0.0.0
|
|
NODE_ENV=development
|
|
SERVICE_NAME=extraction-service
|
|
CORS_ORIGIN=*
|
|
|
|
# ── Python Sidecar ───────────────────────────────────────────────
|
|
PYTHON_SIDECAR_URL=http://localhost:4006
|
|
DEFAULT_MODEL_ID=gemini-2.5-flash
|
|
|
|
# ── Azure Cosmos DB ──────────────────────────────────────────────
|
|
COSMOS_ENDPOINT=https://cosmos-mywisprai.documents.azure.com:443/
|
|
COSMOS_KEY=your-cosmos-key
|
|
COSMOS_DATABASE=lysnrai
|
|
|
|
# ── Auth ─────────────────────────────────────────────────────────
|
|
JWT_SECRET=your-jwt-secret
|
|
|
|
# ── Product Identity ─────────────────────────────────────────────
|
|
DEFAULT_PRODUCT_ID=lysnrai
|
|
|
|
# ── Python Sidecar Env (passed to python/ process) ──────────────
|
|
GEMINI_API_KEY=your-gemini-api-key
|
|
# AZURE_OPENAI_API_KEY=your-azure-openai-key
|
|
# AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
|