Skip to content

Commit 5c8d0e7

Browse files
committed
Update optimal query reformulation settings
1 parent f7cf64c commit 5c8d0e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/slackBotFunction/app/services/query_reformulator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ def reformulate_query(user_query: str) -> str:
4141
body=json.dumps(
4242
{
4343
"anthropic_version": "bedrock-2023-05-31",
44-
"max_tokens": 200,
44+
"temperature": 0.1,
45+
"top_p": 0.9,
46+
"top_k": 50,
47+
"max_tokens": 150,
4548
"messages": [{"role": "user", "content": prompt}],
4649
}
4750
),

0 commit comments

Comments
 (0)