Skip to content

Commit bc755d7

Browse files
committed
feat: support nebular database
1 parent e3a55d3 commit bc755d7

File tree

2 files changed

+319
-96
lines changed

2 files changed

+319
-96
lines changed

examples/basic_modules/nebular_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def run_user_session(
212212
print(f"\n=== {user_name} starts building their memory graph ===")
213213

214214
# Manually initialize correct GraphDB class
215-
216215
config = GraphDBConfigFactory(
217216
backend="nebular",
218217
config={
@@ -301,6 +300,7 @@ def run_user_session(
301300
print("🔍 Search result:", node["memory"])
302301

303302
# === Step 5: Tag-based neighborhood discovery ===
303+
# TODO
304304
neighbors = graph.get_neighbors_by_tag(["concept"], exclude_ids=[], top_k=2)
305305
print("📎 Tag-related nodes:", [neighbor["memory"] for neighbor in neighbors])
306306

@@ -319,7 +319,7 @@ def run_user_session(
319319
graph.update_node(
320320
concept_items[0].id, {"confidence": 99.0, "created_at": "2025-07-24T20:11:56.375687"}
321321
)
322-
graph.remove_oldest_memory("WorkingMemory", keep_latest=1)
322+
graph.remove_oldest_memory("LongTermMemory", keep_latest=3)
323323
graph.delete_edge(topic.id, concept_items[0].id, type="PARENT")
324324
graph.delete_node(concept_items[1].id)
325325

0 commit comments

Comments
 (0)