(refactor) remove preprocessing in retrieval

This commit is contained in:
ManishMadan2882
2024-12-19 05:20:55 +05:30
parent 89a2f249c1
commit 9096013e13
5 changed files with 3 additions and 30 deletions

View File

@@ -455,7 +455,7 @@ class Answer(Resource):
try:
question = data["question"]
history = data.get("history", [])
history = str(limit_chat_history(json.loads(data.get("history", []))))
conversation_id = data.get("conversation_id")
prompt_id = data.get("prompt_id", "default")
chunks = int(data.get("chunks", 2))