File size: 1,393 Bytes
a4538e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Environment-specific Configuration
environment: "development"

# Database and Storage Settings
storage:
  faiss_store_path: "faiss_store"
  backup_enabled: true
  backup_frequency: "daily"

# Model Configuration
models:
  embedding:
    provider: "sentence-transformers"
    model_name: "all-MiniLM-L6-v2"
    device: "cpu" # or "cuda" if GPU available

  llm:
    provider: "groq"
    model_name: "llama-3.1-8b-instant"
    api_key_env: "GROQ_API_KEY"
    parameters:
      temperature: 0.1
      max_tokens: 1000
      top_p: 0.9

# Processing Settings
processing:
  text_splitter:
    type: "recursive_character"
    chunk_size: 1000
    chunk_overlap: 200
    separators: ["\n\n", "\n", " ", ""]

  batch_processing:
    enabled: true
    batch_size: 100

# API Settings
api:
  server:
    host: "0.0.0.0"
    port: 8000
    workers: 1
    reload: true

  security:
    cors_enabled: true
    cors_origins: ["*"]
    rate_limiting: false

  features:
    health_check: true
    metrics: false
    documentation: true

# Logging and Monitoring
logging:
  level: "INFO"
  file_enabled: false
  file_path: "logs/app.log"
  console_enabled: true

monitoring:
  metrics_enabled: false
  health_checks: true

# Development Settings
development:
  debug: true
  hot_reload: true

# Production Settings (override in production)
production:
  debug: false
  workers: 4
  logging_level: "WARNING"