mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-02 09:37:03 +00:00
refactor: Refactor proxy LLM (#1064)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Iterable, List
|
||||
|
||||
from dbgpt.rag.chunk import Document, Chunk
|
||||
from dbgpt.rag.chunk import Chunk, Document
|
||||
from dbgpt.rag.text_splitter.text_splitter import TextSplitter
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import copy
|
||||
import logging
|
||||
import re
|
||||
from abc import abstractmethod, ABC
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
@@ -14,7 +14,7 @@ from typing import (
|
||||
Union,
|
||||
)
|
||||
|
||||
from dbgpt.rag.chunk import Document, Chunk
|
||||
from dbgpt.rag.chunk import Chunk, Document
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@@ -4,7 +4,7 @@ from typing import Callable, List, Optional
|
||||
from pydantic import BaseModel, Field, PrivateAttr
|
||||
|
||||
from dbgpt.util.global_helper import globals_helper
|
||||
from dbgpt.util.splitter_utils import split_by_sep, split_by_char
|
||||
from dbgpt.util.splitter_utils import split_by_char, split_by_sep
|
||||
|
||||
DEFAULT_METADATA_FORMAT_LEN = 2
|
||||
DEFAULT_CHUNK_OVERLAP = 20
|
||||
|
Reference in New Issue
Block a user