mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 22:19:28 +00:00
refactor: Refactor datasource module (#1309)
This commit is contained in:
@@ -4,7 +4,7 @@ from abc import ABC, abstractmethod
|
||||
from enum import Enum
|
||||
from typing import Any, List, Optional, Tuple, Type
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.text_splitter.text_splitter import (
|
||||
MarkdownHeaderTextSplitter,
|
||||
PageTextSplitter,
|
||||
|
@@ -2,7 +2,7 @@
|
||||
import csv
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -3,7 +3,7 @@ from typing import Any, List, Optional
|
||||
|
||||
import docx
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -3,7 +3,7 @@ from typing import Any, List, Optional
|
||||
|
||||
import chardet
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
"""Markdown Knowledge."""
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
"""PDF Knowledge."""
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
"""PPTX Knowledge."""
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
"""String Knowledge."""
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import ChunkStrategy, Knowledge, KnowledgeType
|
||||
|
||||
|
||||
|
@@ -3,7 +3,7 @@ from typing import Any, List, Optional
|
||||
|
||||
import chardet
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import (
|
||||
ChunkStrategy,
|
||||
DocumentType,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
"""URL Knowledge."""
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from dbgpt.rag.chunk import Document
|
||||
from dbgpt.core import Document
|
||||
from dbgpt.rag.knowledge.base import ChunkStrategy, Knowledge, KnowledgeType
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user