File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Assumption: Neo4j running with a defined vector index
68
68
69
69
``` python
70
70
from neo4j import GraphDatabase
71
- from neo4j_genai.indexes import upsert_query
71
+ from neo4j_genai.indexes import upsert_vector
72
72
73
73
URI = " neo4j://localhost:7687"
74
74
AUTH = (" neo4j" , " password" )
@@ -78,7 +78,7 @@ driver = GraphDatabase.driver(URI, auth=AUTH)
78
78
79
79
# Upsert the vector
80
80
vector = ...
81
- upsert_query (
81
+ upsert_vector (
82
82
driver,
83
83
node_id = 1 ,
84
84
embedding_property = " vectorProperty" ,
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Note that the below example is not the only way you can upsert data into your Ne
113
113
.. code :: python
114
114
115
115
from neo4j import GraphDatabase
116
- from neo4j_genai.indexes import upsert_query
116
+ from neo4j_genai.indexes import upsert_vector
117
117
118
118
URI = " neo4j://localhost:7687"
119
119
AUTH = (" neo4j" , " password" )
@@ -123,7 +123,7 @@ Note that the below example is not the only way you can upsert data into your Ne
123
123
124
124
# Upsert the vector
125
125
vector = ...
126
- upsert_query (
126
+ upsert_vector (
127
127
driver,
128
128
node_id = 1 ,
129
129
embedding_property = " vectorProperty" ,
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ def upsert_vector(
251
251
.. code-block:: python
252
252
253
253
from neo4j import GraphDatabase
254
- from neo4j_genai.indexes import upsert_query
254
+ from neo4j_genai.indexes import upsert_vector
255
255
256
256
URI = "neo4j://localhost:7687"
257
257
AUTH = ("neo4j", "password")
@@ -260,7 +260,7 @@ def upsert_vector(
260
260
driver = GraphDatabase.driver(URI, auth=AUTH)
261
261
262
262
# Upsert the vector data
263
- upsert_query (
263
+ upsert_vector (
264
264
driver,
265
265
node_id="nodeId",
266
266
embedding_property="vectorProperty",
You can’t perform that action at this time.
0 commit comments