Skip to content

Commit 2952cd7

Browse files
committed
knowledge graph typo
1 parent 89536e4 commit 2952cd7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

npcpy/memory/knowledge_graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def breathe(
437437

438438

439439
def find_similar_groups(
440-
conn: kuzu.Connection,
440+
conn,
441441
fact: str, # Ensure fact is passed as a string
442442
model: str = "llama3.2",
443443
provider: str = "ollama",
@@ -556,7 +556,7 @@ def assign_to_groups(
556556
return response["response"]
557557

558558

559-
def insert_fact(conn: kuzu.Connection, fact: str, path: str) -> bool:
559+
def insert_fact(conn, fact: str, path: str) -> bool:
560560
"""Insert a fact into the database with robust error handling"""
561561
if conn is None:
562562
print("Cannot insert fact: database connection is None")
@@ -613,7 +613,7 @@ def insert_fact(conn: kuzu.Connection, fact: str, path: str) -> bool:
613613
return False
614614

615615

616-
def assign_fact_to_group(conn: kuzu.Connection, fact: str, group: str) -> bool:
616+
def assign_fact_to_group(conn, fact: str, group: str) -> bool:
617617
"""Create a relationship between a fact and a group with robust error handling"""
618618
if conn is None:
619619
print("Cannot assign fact to group: database connection is None")
@@ -671,7 +671,7 @@ def assign_fact_to_group(conn: kuzu.Connection, fact: str, group: str) -> bool:
671671

672672

673673
def save_facts_to_db(
674-
conn: kuzu.Connection, facts: List[str], path: str, batch_size: int
674+
conn, facts: List[str], path: str, batch_size: int
675675
):
676676
"""Save a list of facts to the database in batches"""
677677
for i in range(0, len(facts), batch_size):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def package_files(directory):
8282

8383
setup(
8484
name="npcpy",
85-
version="1.0.0",
85+
version="1.0.1",
8686
packages=find_packages(exclude=["tests*"]),
8787
install_requires=base_requirements, # Only install base requirements by default
8888
extras_require={

0 commit comments

Comments
 (0)