refactor: the document structure of GraphRAG (#2084)

This commit is contained in:
Appointat
2024-10-21 18:05:55 +08:00
committed by GitHub
parent 584f090847
commit 6d6667812b
15 changed files with 401 additions and 284 deletions

View File

@@ -49,6 +49,7 @@ class Chunk(Document):
chunk_id: str = Field(
default_factory=lambda: str(uuid.uuid4()), description="unique id for the chunk"
)
chunk_name: str = Field(default="", description="chunk name")
content: str = Field(default="", description="chunk text content")
metadata: Dict[str, Any] = Field(