fix: replace logging function in classify_documents.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Boris 2024-02-17 17:44:45 +01:00 committed by GitHub
parent 22390c1bd1
commit 8e5d2dae94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,6 +59,6 @@ async def classify_documents(query: str, document_id: str, content: str):
{"query": query, "d_id": document_id, "context": str(document_context)}
)
arguments_str = classifier_output.additional_kwargs["function_call"]["arguments"]
print("This is the arguments string", arguments_str)
logging.info("This is the arguments string %s", arguments_str)
arguments_dict = json.loads(arguments_str)
return arguments_dict