MusaR commited on
Commit
051e64b
·
verified ·
1 Parent(s): 86237fa

Update research_agent/config.py

Browse files
Files changed (1) hide show
  1. research_agent/config.py +26 -11
research_agent/config.py CHANGED
@@ -1,18 +1,33 @@
1
  from pydantic import BaseModel
2
 
3
  class AgentConfig:
4
- """Configuration settings for the Max-Depth agent."""
 
 
5
  WRITER_MODEL = "gemini-2.5-flash-lite-preview-06-17"
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
- # Research settings
8
- INITIAL_SEARCH_RESULTS = 5
9
- DEEP_DIVE_SEARCH_RESULTS = 7
 
10
 
11
- # RAG settings
12
- CHUNKS_TO_RETRIEVE = 30
13
- CHUNKS_TO_USE_FOR_WRITING = 10
 
14
 
15
- # LLM settings
16
- WRITER_TEMPERATURE = 0.4
17
- PLANNER_TEMPERATURE = 0.2
18
- NLU_TEMPERATURE = 0.1
 
1
  from pydantic import BaseModel
2
 
3
  class AgentConfig:
4
+ """Configuration settings for the advanced research agent."""
5
+
6
+ # Model settings
7
  WRITER_MODEL = "gemini-2.5-flash-lite-preview-06-17"
8
+ PLANNER_MODEL = "gemini-2.5-flash-lite-preview-06-17"
9
+
10
+ # Research settings - Deep search parameters
11
+ INITIAL_SEARCH_RESULTS = 8 # For initial planning phase
12
+ DEEP_DIVE_SEARCH_RESULTS = 12 # Per query in each section
13
+ MAX_QUERIES_PER_SECTION = 4 # Limit queries to avoid rate limits
14
+
15
+ # RAG settings - Document processing
16
+ CHUNKS_TO_RETRIEVE = 50 # Initial retrieval before re-ranking
17
+ CHUNKS_TO_USE_FOR_WRITING = 15 # Final chunks after re-ranking
18
+ CHUNK_SIZE = 1000 # Size of text chunks
19
+ CHUNK_OVERLAP = 200 # Overlap between chunks
20
 
21
+ # LLM settings - Temperature controls
22
+ WRITER_TEMPERATURE = 0.4 # Balanced creativity for writing
23
+ PLANNER_TEMPERATURE = 0.2 # Low for structured planning
24
+ VERIFICATION_TEMPERATURE = 0.1 # Very low for fact-checking
25
 
26
+ # Quality settings
27
+ ENABLE_VERIFICATION = True # Enable fact-checking step
28
+ ENABLE_CITATIONS = True # Include source citations
29
+ MIN_SOURCES_PER_SECTION = 3 # Minimum sources per section
30
 
31
+ # Rate limiting
32
+ SEARCH_DELAY = 0.5 # Seconds between searches
33
+ SECTION_DELAY = 1.0 # Seconds between sections