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:
parent
22390c1bd1
commit
8e5d2dae94
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}
|
{"query": query, "d_id": document_id, "context": str(document_context)}
|
||||||
)
|
)
|
||||||
arguments_str = classifier_output.additional_kwargs["function_call"]["arguments"]
|
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)
|
arguments_dict = json.loads(arguments_str)
|
||||||
return arguments_dict
|
return arguments_dict
|
||||||
Loading…
Add table
Reference in a new issue