Skip to content

Commit

Permalink
Update import_packages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yrobla authored Nov 26, 2024
1 parent b87e642 commit e17088e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/import_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def add_data(client):
print("Adding data from", json_file)

# temporary, just for testing
counter = 0
with collection.batch.dynamic() as batch:
for line in f:
package = json.loads(line)
Expand Down Expand Up @@ -110,9 +109,6 @@ def add_data(client):
vector = generate_embeddings(vector_str)

batch.add_object(properties=package, vector=vector)
counter += 1
if counter>100:
break


def run_import():
Expand Down

0 comments on commit e17088e

Please sign in to comment.