Skip to content

Commit

Permalink
Merge pull request #33 from FloRul/feature/api-auth
Browse files Browse the repository at this point in the history
Update retrieval documents to use JSON serialization
  • Loading branch information
FloRul authored Feb 20, 2024
2 parents fab80a5 + dda4efb commit fec6f60
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 fec6f60

Please sign in to comment.