Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasia authored Aug 7, 2024
1 parent 6998402 commit 4eec1fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Assumption: Neo4j running with a defined vector index

```python
from neo4j import GraphDatabase
from neo4j_genai.indexes import upsert_query
from neo4j_genai.indexes import upsert_vector

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

# Upsert the vector
vector = ...
upsert_query(
upsert_vector(
driver,
node_id=1,
embedding_property="vectorProperty",
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Note that the below example is not the only way you can upsert data into your Ne
.. code:: python
from neo4j import GraphDatabase
from neo4j_genai.indexes import upsert_query
from neo4j_genai.indexes import upsert_vector
URI = "neo4j://localhost:7687"
AUTH = ("neo4j", "password")
Expand All @@ -123,7 +123,7 @@ Note that the below example is not the only way you can upsert data into your Ne
# Upsert the vector
vector = ...
upsert_query(
upsert_vector(
driver,
node_id=1,
embedding_property="vectorProperty",
Expand Down
4 changes: 2 additions & 2 deletions src/neo4j_genai/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def upsert_vector(
.. code-block:: python
from neo4j import GraphDatabase
from neo4j_genai.indexes import upsert_query
from neo4j_genai.indexes import upsert_vector
URI = "neo4j://localhost:7687"
AUTH = ("neo4j", "password")
Expand All @@ -260,7 +260,7 @@ def upsert_vector(
driver = GraphDatabase.driver(URI, auth=AUTH)
# Upsert the vector data
upsert_query(
upsert_vector(
driver,
node_id="nodeId",
embedding_property="vectorProperty",
Expand Down

0 comments on commit 4eec1fa

Please sign in to comment.