Skip to content

Commit

Permalink
defaults episodes to empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen15 committed Sep 18, 2024
1 parent bac9c09 commit 3b18716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/podcast/podcast_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async def main(use_bulk: bool = True):
reference_time=message.actual_timestamp,
source_description='Podcast Transcript',
group_id='1',
update_communities=True,
)

return
Expand Down
4 changes: 2 additions & 2 deletions graphiti_core/edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class EntityEdge(Edge):
name: str = Field(description='name of the edge, relation name')
fact: str = Field(description='fact representing the edge and nodes that it connects')
fact_embedding: list[float] | None = Field(default=None, description='embedding of the fact')
episodes: list[str] | None = Field(
default=None,
episodes: list[str] = Field(
default=[],
description='list of episode ids that reference these entity edges',
)
expired_at: datetime | None = Field(
Expand Down

0 comments on commit 3b18716

Please sign in to comment.