Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypher/indexing/vector-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ graph.query("CREATE VECTOR INDEX FOR (p:Product) ON (p.embedding) OPTIONS {dimen

# Insert products with embeddings (embeddings would come from your model)
embedding = model.encode("laptop computer") # Your embedding model
graph.query(f"CREATE (p:Product {{name: 'Laptop', embedding: vecf32({embedding.tolist()})}})")
graph.query(f"CREATE (p:Product {name: 'Laptop', embedding: vecf32({embedding.tolist()})})")

# Search for similar products
query_embedding = model.encode("notebook pc")
Expand Down
Loading