Skip to content

Read ports and models from .env file #923

@niutech

Description

@niutech

In .env file there are ports and models defined like:

BACKEND_PORT=8000
FRONTEND_PORT=3000
RAG_API_PORT=8001

GENERATION_MODEL=qwen3:8b
ENRICHMENT_MODEL=qwen3:0.6b
EMBEDDING_MODEL=Qwen/Qwen3-Embedding-0.6B
RERANKER_MODEL=answerdotai/answerai-colbert-small-v1

However, these port numbers and model names are hardcoded in various places, e.g. in run_system.py or backend/server.py, instead of reading from environment variables. This is a huge burden when I want to change the ports or models without using Docker. Please read them from single place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions