diff --git a/cypher/index.md b/cypher/index.md index 29100a5..e0cae8f 100644 --- a/cypher/index.md +++ b/cypher/index.md @@ -216,6 +216,17 @@ CREATE VECTOR INDEX FOR ()-[e:Call]->() ON (e.summary) OPTIONS {dimension:128, s Please note when creating a vector index both the vector dimension and similarity function must be provided. At the moment the only supported similarity function is 'euclidean'. +## Inserting vectors + +To create a new vector use the [vecf32](https://docs.falkordb.com/cypher/functions.html#vector-functions) function +as follows: + +```cypher +CREATE (p: Product {description: vecf32([2.1, 0.82, 1.3])}) +``` + +The above query creates a new `Product` node with a `description` attribute containing a vector. + ## Query vector index Vector indices are used to search for similar vectors to a given query vector @@ -269,4 +280,4 @@ For example to drop the vector index over Product description invoke: ```cypher DROP VECTOR INDEX FOR (p:Product) ON (p.description) -``` \ No newline at end of file +```