Skip to content

Commit

Permalink
attaching file to vector store
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Nov 22, 2024
1 parent 38a04d3 commit 3e23a3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/export_and_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,14 @@ jobs:
print(response)
file_id = response["id"]
print("File uploaded successfully with ID:", file_id)
# Optionally associate the file with a vector store
if vector_store_id:
client.vector_stores.files.create(
vector_store_id=vector_store_id,
file_id=file.id
)
EOF

0 comments on commit 3e23a3a

Please sign in to comment.