Skip to content

Commit

Permalink
no 5
Browse files Browse the repository at this point in the history
  • Loading branch information
nboyse committed Feb 17, 2025
1 parent 0ddd962 commit 0b74a28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redbox-core/tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ def test_ingest_from_loader(

mapping = {"properties": {"embedding": {"type": "knn_vector", "dimension": 1024}}}

# Check if the index already exists and delete it if it does
if es_client.indices.exists(index="my_index"):
es_client.indices.delete(index="my_index")

es_client.indices.create(index="my_index", body={"mappings": mapping})

# Mock embeddings
Expand Down

0 comments on commit 0b74a28

Please sign in to comment.