Spaces:
Running
Running
darkisz
commited on
Update backendv1.py
Browse files- backendv1.py +3 -1
backendv1.py
CHANGED
|
@@ -53,7 +53,8 @@ CONFIG = {
|
|
| 53 |
"MAX_GENERATION_TOKENS": 1024,
|
| 54 |
"GENERATION_TEMPERATURE": 0.6,
|
| 55 |
"USE_QUERY_EXPANSION": True,
|
| 56 |
-
"SPELLCHECK_LANG": 'hu'
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
# --- Segédfüggvények ---
|
|
@@ -361,3 +362,4 @@ KONTEXTUS:
|
|
| 361 |
answer = generate_answer_with_history(backend["llm_client"], CONFIG["TOGETHER_MODEL_NAME"], messages_for_llm, CONFIG["GENERATION_TEMPERATURE"])
|
| 362 |
|
| 363 |
return {"answer": answer, "sources": sources, "corrected_question": corrected_question, "confidence_score": confidence_score}
|
|
|
|
|
|
| 53 |
"MAX_GENERATION_TOKENS": 1024,
|
| 54 |
"GENERATION_TEMPERATURE": 0.6,
|
| 55 |
"USE_QUERY_EXPANSION": True,
|
| 56 |
+
"SPELLCHECK_LANG": 'hu',
|
| 57 |
+
"MAX_HISTORY_TURNS": 3
|
| 58 |
}
|
| 59 |
|
| 60 |
# --- Segédfüggvények ---
|
|
|
|
| 362 |
answer = generate_answer_with_history(backend["llm_client"], CONFIG["TOGETHER_MODEL_NAME"], messages_for_llm, CONFIG["GENERATION_TEMPERATURE"])
|
| 363 |
|
| 364 |
return {"answer": answer, "sources": sources, "corrected_question": corrected_question, "confidence_score": confidence_score}
|
| 365 |
+
|