Hi team, I’n new to Nebula and I’m trying to run t...
# nebula
z
Hi team, I’n new to Nebula and I’m trying to run this tutorial on google colab. https://www.nebula-graph.io/posts/implement_graph_rag_with_nebulagraph. After start the NebulaGraph cluster via NebulaGraph Lite in Google Colab, I run this chunk of code
Copy code
import os
from llama_index.core import KnowledgeGraphIndex, SimpleDirectoryReader
from llama_index.core import StorageContext
from llama_index.graph_stores.nebula import NebulaGraphStore

os.environ["NEBULA_USER"] = "root"
os.environ["NEBULA_PASSWORD"] = "nebula"
os.environ["NEBULA_ADDRESS"] = "127.0.0.1:9669"


space_name = "paul_graham_essay"
edge_types, rel_prop_names = ["relationship"], ["relationship"]  # default, could be omit if create from an empty kg
tags = ["entity"]  # default, could be omit if create from an empty kg

graph_store = NebulaGraphStore(
    space_name=space_name,
    edge_types=edge_types,
    rel_prop_names=rel_prop_names,
    tags=tags)

storage_context = StorageContext.from_defaults(graph_store=graph_store)
Got the following error. Does anyone who why and how to fix it? Thank you!
Copy code
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-22-e7fefa3f7412> in <cell line: 15>()
     13 tags = ["entity"]  # default, could be omit if create from an empty kg
     14 
---> 15 graph_store = NebulaGraphStore(
     16     space_name=space_name,
     17     edge_types=edge_types,

3 frames
/usr/local/lib/python3.10/dist-packages/nebula3/gclient/net/SessionPool.py in _new_session(self)
    424                 resp = session.execute("USE {}".format(self._space_name))
    425                 if not resp.is_succeeded():
--> 426                     raise RuntimeError(
    427                         "Failed to get session, cannot set the session space to {} error: {} {}".format(
    428                             self._space_name, resp.error_code(), resp.error_msg()

RuntimeError: Failed to get session, cannot set the session space to paul_graham_essay error: -1005 SpaceNotFound: SpaceName `paul_graham_essay`