Skip to content

Commit

Permalink
Update retrieval documents to use JSON serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
FloRul committed Feb 20, 2024
1 parent 710bd2c commit dda4efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambdas/inference/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def lambda_handler(event, context):
{
"completion": response,
"retrieval": {
"documents": [doc.to_dict() for doc in docs],
"documents": [json.dumps(doc) for doc in docs],
},
}
),
Expand Down

0 comments on commit dda4efb

Please sign in to comment.