mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 23:28:35 +00:00
chore:wechat update (#2175)
This commit is contained in:
parent
af2d042aa7
commit
a801a973bf
Binary file not shown.
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 117 KiB |
@ -186,7 +186,6 @@ class CommunitySummaryKnowledgeGraph(BuiltinKnowledgeGraph):
|
|||||||
|
|
||||||
async def aload_document(self, chunks: List[Chunk]) -> List[str]:
|
async def aload_document(self, chunks: List[Chunk]) -> List[str]:
|
||||||
"""Extract and persist graph from the document file."""
|
"""Extract and persist graph from the document file."""
|
||||||
|
|
||||||
await self._aload_document_graph(chunks)
|
await self._aload_document_graph(chunks)
|
||||||
await self._aload_triplet_graph(chunks)
|
await self._aload_triplet_graph(chunks)
|
||||||
await self._community_store.build_communities(
|
await self._community_store.build_communities(
|
||||||
@ -197,6 +196,7 @@ class CommunitySummaryKnowledgeGraph(BuiltinKnowledgeGraph):
|
|||||||
|
|
||||||
async def _aload_document_graph(self, chunks: List[Chunk]) -> None:
|
async def _aload_document_graph(self, chunks: List[Chunk]) -> None:
|
||||||
"""Load the knowledge graph from the chunks.
|
"""Load the knowledge graph from the chunks.
|
||||||
|
|
||||||
The chunks include the doc structure.
|
The chunks include the doc structure.
|
||||||
"""
|
"""
|
||||||
if not self._document_graph_enabled:
|
if not self._document_graph_enabled:
|
||||||
|
Loading…
Reference in New Issue
Block a user