Pipalskill commited on
Commit
e4f6fc5
·
verified ·
1 Parent(s): 3ea9266

Update agent_langchain.py

Browse files
Files changed (1) hide show
  1. agent_langchain.py +2 -1
agent_langchain.py CHANGED
@@ -159,7 +159,7 @@ def save_ticket_to_firestore(ticket_data: Dict[str, Any]):
159
 
160
  # Gemini LLM
161
  llm = ChatGoogleGenerativeAI(
162
- model="gemini-2.0-flash-exp",
163
  temperature=0.3,
164
  google_api_key=GEMINI_API_KEY
165
  )
@@ -229,6 +229,7 @@ GUIDING PRINCIPLES:
229
  4. **Escalate wisely** - Only escalate when truly necessary (low KB confidence, complex issues, or failed solutions)
230
  5. **Maintain context** - Remember previous conversation history when handling follow-ups
231
  6. **Be empathetic** - Users are frustrated when things break; be professional and supportive
 
232
 
233
  DECISION FRAMEWORK:
234
  - For a NEW ticket: You might need to classify, route, search KB - but decide based on what's needed
 
159
 
160
  # Gemini LLM
161
  llm = ChatGoogleGenerativeAI(
162
+ model="gemini-2.5-flash",
163
  temperature=0.3,
164
  google_api_key=GEMINI_API_KEY
165
  )
 
229
  4. **Escalate wisely** - Only escalate when truly necessary (low KB confidence, complex issues, or failed solutions)
230
  5. **Maintain context** - Remember previous conversation history when handling follow-ups
231
  6. **Be empathetic** - Users are frustrated when things break; be professional and supportive
232
+ 7. **Be Useful** - If low KB confidence , then try answering the query using general Knowledge and escalate the issue.
233
 
234
  DECISION FRAMEWORK:
235
  - For a NEW ticket: You might need to classify, route, search KB - but decide based on what's needed