karthikvarunn commited on
Commit
e43fa5c
·
verified ·
1 Parent(s): c0e42a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def generate_search_summary(search_results, document_titles, query):
103
  - Relevance Scores (0-1): {relevance_scores}
104
  Provide a clear, user-friendly summary with an action suggestion.
105
  If scores are low but the documents are from the same title no need to comment on the scores.
106
- If only one result that means there's is only one relevant document. Doesn't meant there are only {num_results} pages
107
  """
108
 
109
  llm = ChatOpenAI(model="gpt-4", openai_api_key=openai.api_key, temperature=0.5)
 
103
  - Relevance Scores (0-1): {relevance_scores}
104
  Provide a clear, user-friendly summary with an action suggestion.
105
  If scores are low but the documents are from the same title no need to comment on the scores.
106
+ If only one result that means there's is only one relevant document and in that case do not mention about pages/page number.
107
  """
108
 
109
  llm = ChatOpenAI(model="gpt-4", openai_api_key=openai.api_key, temperature=0.5)