Michael Freeman
02/25/2024, 8:03 PMMichael Freeman
02/25/2024, 8:03 PMMichael Freeman
02/25/2024, 8:05 PMMichael Freeman
02/25/2024, 8:05 PMnebula-studio
repoMichael Freeman
02/25/2024, 8:06 PMโฏ kubectl exec -it nebula-studio-f97d849fb-xd8q8 -n nebula -- /bin/sh
/app # ./server
command terminated with exit code 137
Michael Freeman
02/25/2024, 8:07 PMpratham garg
02/26/2024, 9:23 AMJerry Schuman
02/27/2024, 3:36 PMpratham garg
02/29/2024, 10:54 AMAnkit Kumar
03/04/2024, 6:43 PMAnkit Kumar
03/14/2024, 6:29 AMguobin li
03/21/2024, 9:48 AMWenting
03/26/2024, 8:38 AMNikolay
03/29/2024, 9:07 AMWenting
04/18/2024, 9:23 AMZiyan Zhu
05/01/2024, 11:16 PMimport 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!
---------------------------------------------------------------------------
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`
Goran Cvijanovic
05/02/2024, 10:24 AMCaleb Gagnon
05/09/2024, 5:36 PMGabriel Shiao
05/11/2024, 8:40 AMPaul M
05/12/2024, 3:14 PMD. Draco O'Brien
05/18/2024, 2:19 PMJoaquin Ramirez
06/18/2024, 8:37 PMWenting
06/20/2024, 4:36 AMMichael Freeman
06/20/2024, 3:16 PMJoaquin Ramirez
06/24/2024, 12:23 PM[
{
"id_": "3c25b01b-b555-4ab3-abd8-313e043163bf",
"embedding":
0.03493161126971245,
...
],
"metadata": {
"lecture_number": "#",
"lecture_title": "#",
"topic_title": "#",
"sub_topic_title": "#",
"content_type": "text"
},
"excluded_embed_metadata_keys": [],
"excluded_llm_metadata_keys": [],
"relationships": {
"1": {
"node_id": "source_id",
"node_type": null,
"metadata": {},
"hash": null,
"class_name": "RelatedNodeInfo"
}
},
"text": "#",
"start_char_idx": null,
"end_char_idx": null,
"text_template": "{metadata_str}\n\n{content}",
"metadata_template": "{key}: {value}",
"metadata_seperator": "\n",
"class_name": "TextNode"
},
{
"id_": "f12e1dc8-748d-4c75-a647-fff0d1f79ef3",
"embedding": [
0.00812634825706482,
...
],
"metadata": {
"lecture_number": "#",
"lecture_title": "#",
"topic_title": "#",
"sub_topic_title": "#",
"content_type": "equation",
"equation_path": "#"
},
"excluded_embed_metadata_keys": [],
"excluded_llm_metadata_keys": [],
"relationships": {
"1": {
"node_id": "#",
"node_type": #,
"metadata": {},
"hash": #,
"class_name": "RelatedNodeInfo"
}
},
"text": "#",
"start_char_idx": null,
"end_char_idx": null,
"text_template": "{metadata_str}\n\n{content}",
"metadata_template": "{key}: {value}",
"metadata_seperator": "\n",
"class_name": "TextNode"
},
...
]
Ozan Baris Mulayim
06/26/2024, 3:59 PMJoaquin Ramirez
06/29/2024, 9:07 PMkristain.du
07/12/2024, 6:26 AMkristain.du
07/19/2024, 8:54 AMkristain.du
07/26/2024, 8:55 AM