Skip to content

Commit

Permalink
add todo block to vector embeddings handler
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfluegge committed Nov 30, 2024
1 parent 9958d65 commit 66c2f3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lambda-handler/save-vector-embeddings-handler/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def handler(event, context):
folder_path=file_path,
embeddings=embeddings,
)
# If recreateIndex is set to True, recreate the index
# Update any document vectors that have changed since last index creation
# if recreateIndex:
# metadata = head_object_from_s3(f"{embeddingsModel}_{userId}.faiss")
Expand Down Expand Up @@ -190,6 +189,10 @@ def handler(event, context):
)
for documentId, vectors in document_vectors.items():
add_vectors_to_dynamodb(documentId, vectors)
else:
# TODO in this case a document has been deleted
# delete vectors for documentId
pass

except Exception as e:
return {
Expand Down

0 comments on commit 66c2f3b

Please sign in to comment.