Skip to content

Commit

Permalink
try to fix input as a list
Browse files Browse the repository at this point in the history
Signed-off-by: Aisuko <[email protected]>
  • Loading branch information
Aisuko committed Jul 21, 2024
1 parent 22c10c2 commit ab4e0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/repository/rag/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def get_context_by_question(input_msg: str):
except Exception as e:
loguru.logger.error(e)
# collection name for testing
context = vector_db.search(embedd_input, 1, collection_name="aisuko_squad01")
context = vector_db.search(list(embedd_input), 1, collection_name="aisuko_squad01")
return context or InferenceHelper.instruction

current_context = await get_context_by_question(input_msg)
Expand Down

0 comments on commit ab4e0ec

Please sign in to comment.