Skip to content

Commit

Permalink
Search: show up to 5 related messages
Browse files Browse the repository at this point in the history
  • Loading branch information
YuraLukashik committed Dec 21, 2023
1 parent f63e3e8 commit 3cb724d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/semantic_search/semantic_search/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def smart_query(namespace, query, username: str):
"answer to the query. Use strong deduction and explain the conclusion. Be as concise as possible.\",\n"
" \"answer\": \"Based on the explain and messages_explain fields, generate a short and concise "
"answer to the query for the end user. Don't include any IDs or other service information.\",\n"
" \"messages\": [ From the messages_explain field pick top 1 or 2 messages that were used to infer "
"the answer in the explain field and write their IDs in this array ]\n"
" \"messages\": [ From the messages_explain field pick up to 5 top related messages that were used to "
"infer the answer in the explain field and write their IDs in this array ]\n"
"}")

gpt_response = None
Expand Down

0 comments on commit 3cb724d

Please sign in to comment.