Skip to content

feat: removes unused properies from node and edge pydantic models #884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions cognee/shared/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,13 @@ class Node(BaseModel):
name: str
type: str
description: str
properties: Optional[Dict[str, Any]] = Field(
None, description="A dictionary of properties associated with the node."
)

class Edge(BaseModel):
"""Edge in a knowledge graph."""

source_node_id: str
target_node_id: str
relationship_name: str
properties: Optional[Dict[str, Any]] = Field(
None, description="A dictionary of properties associated with the edge."
)

class KnowledgeGraph(BaseModel):
"""Knowledge graph."""
Expand Down
Loading