Skip to content

Commit

Permalink
fix compass params (#716)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
scott-cohere authored Aug 20, 2024
1 parent 424ef27 commit a16fa2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/services/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ async def consolidate_agent_files_in_compass(
"index": agent_id,
"file_id": file_id,
"file_bytes": fetched_doc["text"],
"filename": fetched_doc["file_name"],
"custom_context": {
"file_id": file_id,
"file_name": fetched_doc["file_name"],
Expand Down Expand Up @@ -569,6 +570,7 @@ async def insert_files_in_compass(
"index": new_file_id if index is None else index,
"file_id": new_file_id,
"file_bytes": file_bytes,
"filename": filename,
"custom_context": {
"file_id": new_file_id,
"file_name": filename,
Expand Down

0 comments on commit a16fa2e

Please sign in to comment.