Spaces:
Runtime error
Runtime error
Update get_similar_hadiths.py
Browse files- get_similar_hadiths.py +2 -2
get_similar_hadiths.py
CHANGED
@@ -21,14 +21,14 @@ class HadithSearch:
|
|
21 |
messages=[
|
22 |
{
|
23 |
"role": "system",
|
24 |
-
"content": "Your task is to transform a described situation into a list of things to look for in a database of Islamic hadith that could be helpful to bring answers. The goal is to use this list to perform cosine similarity embedding search on the hadith database. You
|
25 |
},
|
26 |
{
|
27 |
"role": "user",
|
28 |
"content": text
|
29 |
}
|
30 |
],
|
31 |
-
temperature=
|
32 |
max_tokens=684,
|
33 |
top_p=1,
|
34 |
frequency_penalty=0,
|
|
|
21 |
messages=[
|
22 |
{
|
23 |
"role": "system",
|
24 |
+
"content": "Your task is to transform a described situation into a list of the top 3 most important things to look for in a database of Islamic hadith that could be helpful to bring answers. It should be formatted with only the list and no opinion from you. The goal is to use this list to perform cosine similarity embedding search on the hadith database. You provide this list in French"
|
25 |
},
|
26 |
{
|
27 |
"role": "user",
|
28 |
"content": text
|
29 |
}
|
30 |
],
|
31 |
+
temperature=1,
|
32 |
max_tokens=684,
|
33 |
top_p=1,
|
34 |
frequency_penalty=0,
|