Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen15 committed Feb 5, 2025
1 parent a577efe commit 322e023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphiti_core/graphiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import logging
from datetime import datetime
from time import time
from typing import LiteralString

from dotenv import load_dotenv
from neo4j import AsyncGraphDatabase
from pydantic import BaseModel
from typing_extensions import LiteralString

from graphiti_core.cross_encoder.client import CrossEncoderClient
from graphiti_core.cross_encoder.openai_reranker_client import OpenAIRerankerClient
Expand Down Expand Up @@ -764,7 +764,7 @@ async def remove_episode(self, episode_uuid: str):

# Find nodes mentioned by the episode
nodes = await get_mentioned_nodes(self.driver, episode)
# We should delete all node that are only mentioned in the deleted episode
# We should delete all nodes that are only mentioned in the deleted episode
nodes_to_delete: list[EntityNode] = []
for node in nodes:
query: LiteralString = 'MATCH (e:Episodic)-[:MENTIONS]->(n:Entity {uuid: $uuid}) RETURN count(*) AS episode_count'
Expand Down

0 comments on commit 322e023

Please sign in to comment.