mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-08-26 09:11:32 +00:00
Enforce gemini-2.5-flash-lite per Echo6 model policy
Replace gemini-2.0-flash with gemini-2.5-flash-lite across the enrichment and extraction pipeline (config.yaml, lib/extractor.py) and the six maintenance scripts. Flash Lite is the mandated model for all Gemini calls. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e840a119dd
commit
f3705d10c6
8 changed files with 8 additions and 8 deletions
|
|
@ -40,7 +40,7 @@ vector_db:
|
|||
collection: recon_knowledge_hybrid # Collection name
|
||||
|
||||
gemini:
|
||||
model: gemini-2.0-flash # Gemini model for enrichment
|
||||
model: gemini-2.5-flash-lite # Gemini model for enrichment
|
||||
response_mime_type: application/json # Force JSON output from Gemini
|
||||
|
||||
web:
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ def _try_gemini_vision(pdf_path, page_num_1indexed, page_timeout=60):
|
|||
for attempt in range(3):
|
||||
try:
|
||||
genai.configure(api_key=api_key)
|
||||
model = genai.GenerativeModel('gemini-2.0-flash')
|
||||
model = genai.GenerativeModel('gemini-2.5-flash-lite')
|
||||
response = model.generate_content([
|
||||
{
|
||||
'mime_type': 'image/png',
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ def classify_concept(title, subdomains, content, key):
|
|||
)
|
||||
genai.configure(api_key=key)
|
||||
model = genai.GenerativeModel(
|
||||
"gemini-2.0-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
generation_config={"response_mime_type": "application/json"}
|
||||
)
|
||||
for attempt in range(4):
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ def classify_concept(title, subdomains, content, key):
|
|||
)
|
||||
genai.configure(api_key=key)
|
||||
model = genai.GenerativeModel(
|
||||
"gemini-2.0-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
generation_config={"response_mime_type": "application/json"}
|
||||
)
|
||||
for attempt in range(4):
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ def classify_domain(content, summary, subdomains, key):
|
|||
)
|
||||
genai.configure(api_key=key)
|
||||
model = genai.GenerativeModel(
|
||||
"gemini-2.0-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
generation_config={"response_mime_type": "text/plain"}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ def classify(title, domains, subdomains, content, key):
|
|||
)
|
||||
genai.configure(api_key=key)
|
||||
model = genai.GenerativeModel(
|
||||
"gemini-2.0-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
generation_config={"response_mime_type": "application/json"}
|
||||
)
|
||||
for retry in range(4):
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ def classify(title, subdomains, content, key, attempt=0):
|
|||
)
|
||||
genai.configure(api_key=key)
|
||||
model = genai.GenerativeModel(
|
||||
"gemini-2.0-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
generation_config={"response_mime_type": "application/json"}
|
||||
)
|
||||
for retry in range(4):
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ def enrich_window_text(text, key):
|
|||
"""Call Gemini on raw window text, return concepts list."""
|
||||
genai.configure(api_key=key)
|
||||
model = genai.GenerativeModel(
|
||||
"gemini-2.0-flash",
|
||||
"gemini-2.5-flash-lite",
|
||||
generation_config={"response_mime_type": "application/json"}
|
||||
)
|
||||
for attempt in range(4):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue