Skip to content

Commit

Permalink
Back to the normal dimension size in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasia committed May 6, 2024
1 parent 3b5e64b commit f63d462
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def setup_neo4j(driver):
vector_index_name,
label="Document",
property="propertyKey",
dimensions=10,
dimensions=1536,
similarity_fn="euclidean",
)

Expand All @@ -66,7 +66,7 @@ def setup_neo4j(driver):
)

# Insert 10 vectors and authors
vector = [random.random() for _ in range(10)]
vector = [random.random() for _ in range(1536)]

def random_str(n: int) -> str:
return "".join([random.choice(string.ascii_letters) for _ in range(n)])
Expand All @@ -88,6 +88,6 @@ def random_str(n: int) -> str:
"id": str(uuid.uuid4()),
"i": i,
"vector": vector,
"authorName": random_str(10),
"authorName": random_str(1536),
}
driver.execute_query(insert_query, parameters)
2 changes: 1 addition & 1 deletion tests/e2e/test_vector_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_vector_retriever_filters(driver):

top_k = 2
results = retriever.search(
query_vector=[1.0 for _ in range(10)],
query_vector=[1.0 for _ in range(1536)],
filters={"int_property": {"$gt": 2}},
top_k=top_k,
)
Expand Down

0 comments on commit f63d462

Please sign in to comment.