Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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)
|