refactor: Improve handling of optional fields and enhance compatibility score calculations

This commit is contained in:
2025-10-15 17:58:31 +00:00
parent 7f924b60ec
commit 0765cca90d
7 changed files with 31 additions and 22 deletions
+3 -1
View File
@@ -26,7 +26,7 @@ class QueryProcessor:
self.llm = ChatOpenAI(
api_key=OPENROUTER_API_KEY,
base_url="https://openrouter.ai/api/v1",
model="openai/gpt-5-nano",
model="openai/gpt-4o-mini",
temperature=0,
)
self.agent = create_react_agent(
@@ -107,6 +107,8 @@ class QueryProcessor:
- If you cannot find sufficient data after searching, make reasonable inferences based on available information
- DO NOT state that data is unavailable or ambiguous - provide the best analysis possible with what you find
- Focus on ACTIONABLE insights, not disclaimers
- Only call the tool twice at most, be strategic in your searches
- Summarize your findings concisely and clearly
Provide insights in the InsightResponse schema format: