I have tried connecting to my starter instance of neo4j aura with the following:
from llama_index.core import SimpleDirectoryReader
from llama_index.core.storage.docstore import SimpleDocumentStore
from llama_index.core import StorageContext
from llama_index.llms.openai import OpenAI
from llama_index.core import KnowledgeGraphIndex, SimpleDirectoryReader
from llama_index.core import StorageContext
from llama_index.graph_stores.neo4j import Neo4jGraphStore
username = "neo4j"
password = "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
url = "neo4j+s://XXXXXX.databases.neo4j.io"
database = "Instance01"
graph_store = Neo4jGraphStore(
username=username,
password=password,
url=url,
database=database,
)
However I am getting the following error message. As far as I can tell from my research, APOC is already installed in the cloud and I should be able to connect directly from my client machine. Any ideas on what I'm doing wrong?
Here is the error message:
neo4j.exceptions.ClientError: {code: Neo.ClientError.Database.DatabaseNotFound} {message: Unable to get a routing table for database 'Instance01' because this database does not exist}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xxxxxxxxx/Projects/xxxxxxxxx/indexers/neo4j_index.py", line 15, in <module>
graph_store = Neo4jGraphStore(
File "/home/xxxxxxxxx/Projects/xxxxxxxxx/.venv/lib/python3.10/site-packages/llama_index/graph_stores/neo4j/base.py", line 70, in __init__
raise ValueError(
ValueError: Could not use APOC procedures. Please ensure the APOC plugin is installed in Neo4j and that 'apoc.meta.data()' is allowed in Neo4j configuration
Failed to write data to connection ResolvedIPv4Address(('34.69.128.95', 7687)) (ResolvedIPv4Address(('34.69.128.95', 7687)))
FYI, I tried assigning the instance ID to the database variable to no avail.