Skip to content

Commit 4eec1fa

Browse files
authored
Fix #94 (#95)
1 parent 6998402 commit 4eec1fa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Assumption: Neo4j running with a defined vector index
6868

6969
```python
7070
from neo4j import GraphDatabase
71-
from neo4j_genai.indexes import upsert_query
71+
from neo4j_genai.indexes import upsert_vector
7272

7373
URI = "neo4j://localhost:7687"
7474
AUTH = ("neo4j", "password")
@@ -78,7 +78,7 @@ driver = GraphDatabase.driver(URI, auth=AUTH)
7878

7979
# Upsert the vector
8080
vector = ...
81-
upsert_query(
81+
upsert_vector(
8282
driver,
8383
node_id=1,
8484
embedding_property="vectorProperty",

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Note that the below example is not the only way you can upsert data into your Ne
113113
.. code:: python
114114
115115
from neo4j import GraphDatabase
116-
from neo4j_genai.indexes import upsert_query
116+
from neo4j_genai.indexes import upsert_vector
117117
118118
URI = "neo4j://localhost:7687"
119119
AUTH = ("neo4j", "password")
@@ -123,7 +123,7 @@ Note that the below example is not the only way you can upsert data into your Ne
123123
124124
# Upsert the vector
125125
vector = ...
126-
upsert_query(
126+
upsert_vector(
127127
driver,
128128
node_id=1,
129129
embedding_property="vectorProperty",

src/neo4j_genai/indexes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def upsert_vector(
251251
.. code-block:: python
252252
253253
from neo4j import GraphDatabase
254-
from neo4j_genai.indexes import upsert_query
254+
from neo4j_genai.indexes import upsert_vector
255255
256256
URI = "neo4j://localhost:7687"
257257
AUTH = ("neo4j", "password")
@@ -260,7 +260,7 @@ def upsert_vector(
260260
driver = GraphDatabase.driver(URI, auth=AUTH)
261261
262262
# Upsert the vector data
263-
upsert_query(
263+
upsert_vector(
264264
driver,
265265
node_id="nodeId",
266266
embedding_property="vectorProperty",

0 commit comments

Comments
 (0)