Skip to content

Commit

Permalink
Update vectordb_sync_fcts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawid-Okw authored May 11, 2024
1 parent aa0de51 commit 1ff400e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/vectordb_sync/vectordb_sync_fcts.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def web_to_qdrant(id_to_process):

# Embed the chunks using Infinity
chunks_embedded = [requests.post(url=f"{infinity_api_url}/embeddings",
json={"model": f"{infinity_model}", "input": [chunk]}).json()["data"][0][
"embedding"] for chunk in chunks]
json={"model": f"{infinity_model}", "input": [chunk]}).json()["data"][0]["embedding"] for chunk in chunks]
print("embeddings for web_to_qdrant created successful")

# delete all points created from web pages
Expand Down

0 comments on commit 1ff400e

Please sign in to comment.