Wajahat698 commited on
Commit
38269eb
·
verified ·
1 Parent(s): 2841dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1084,7 +1084,7 @@ def rag_response(query):
1084
 
1085
  # Generate AI response with the retrieved context
1086
  prompt = f"Context:\n{context}\n\nQuestion: {query}\nAnswer:"
1087
- llm = ChatOpenAI(model="gpt-4o", temperature=0.1, api_key=openai_api_key)
1088
  response = llm.invoke(prompt)
1089
 
1090
  return response.content.strip()
@@ -2004,7 +2004,7 @@ def handle_prompt(prompt):
2004
  cleaned_text = ""
2005
  base_instructions = (
2006
  "Strictly Avoid flowery language, typical AI phrases and jargons. "
2007
- "When asked for top trust drivers,buckets,builders,statements search in knowledgebase when asked for prospects or customers to give exact result with percentage. search to use google to give correct sources links .*Be specific with $ amounts awards, people and programs*."
2008
  "Strictly dont use trustbucket names in copy headings and content avoid it"
2009
  )
2010
 
 
1084
 
1085
  # Generate AI response with the retrieved context
1086
  prompt = f"Context:\n{context}\n\nQuestion: {query}\nAnswer:"
1087
+ llm = ChatOpenAI(model="gpt-4o", temperature=0.2, api_key=openai_api_key)
1088
  response = llm.invoke(prompt)
1089
 
1090
  return response.content.strip()
 
2004
  cleaned_text = ""
2005
  base_instructions = (
2006
  "Strictly Avoid flowery language, typical AI phrases and jargons. "
2007
+ "When asked for top trustdrivers,buckets,builders,statements search in knowledgebase when asked for prospects or customers give exact result with percentage. search to use google to give correct sources links .*Be specific with $ amounts awards, people and programs*."
2008
  "Strictly dont use trustbucket names in copy headings and content avoid it"
2009
  )
2010