File size: 2,125 Bytes
732e77c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# ======================================================================
# 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=