| # ====================================================================== | |
| # Feature Flags | |
| # ====================================================================== | |
| ENABLE_LLM=0 # 0 = disable (local/tests); 1 = enable live LLM calls | |
| AI_PROVIDER=hf # Preferred chat provider if ENABLE_LLM=1 | |
| # Options: hf | azure | openai | cohere | deepai | offline | |
| # offline = deterministic stub (no network) | |
| SENTIMENT_ENABLED=true # Enable sentiment analysis | |
| HTTP_TIMEOUT=20 # Global HTTP timeout (seconds) | |
| SENTIMENT_NEUTRAL_THRESHOLD=0.65 | |
| # ====================================================================== | |
| # Database / Persistence | |
| # ====================================================================== | |
| DB_URL=memory:// # Default: in-memory (no persistence) | |
| # Example: sqlite:///data.db | |
| # ====================================================================== | |
| # Azure Cognitive Services | |
| # ====================================================================== | |
| AZURE_ENABLED=false | |
| # Text Analytics (sentiment, key phrases, etc.) | |
| AZURE_TEXT_ENDPOINT= | |
| AZURE_TEXT_KEY= | |
| # Synonyms also supported | |
| MICROSOFT_AI_SERVICE_ENDPOINT= | |
| MICROSOFT_AI_API_KEY= | |
| # Azure OpenAI (optional) | |
| # Not used in this project by default | |
| # AZURE_OPENAI_ENDPOINT= | |
| # AZURE_OPENAI_API_KEY= | |
| # AZURE_OPENAI_DEPLOYMENT= | |
| # AZURE_OPENAI_API_VERSION=2024-06-01 | |
| # ====================================================================== | |
| # Hugging Face (chat or sentiment via Inference API) | |
| # ====================================================================== | |
| HF_API_KEY= | |
| HF_MODEL_SENTIMENT=distilbert/distilbert-base-uncased-finetuned-sst-2-english | |
| HF_MODEL_GENERATION=tiiuae/falcon-7b-instruct | |
| # ====================================================================== | |
| # Other Providers (optional; disabled by default) | |
| # ====================================================================== | |
| # OpenAI | |
| # OPENAI_API_KEY= | |
| # OPENAI_MODEL=gpt-3.5-turbo | |
| # Cohere | |
| # COHERE_API_KEY= | |
| # COHERE_MODEL=command | |
| # DeepAI | |
| # DEEPAI_API_KEY= | |