Fix linting

This commit is contained in:
yangdx
2025-02-16 20:15:14 +08:00
parent 4e354451b7
commit 7f13b779e1
2 changed files with 4 additions and 3 deletions

View File

@@ -33,9 +33,9 @@ MAX_EMBED_TOKENS=8192
HISTORY_TURNS=3 HISTORY_TURNS=3
COSINE_THRESHOLD=0.2 COSINE_THRESHOLD=0.2
TOP_K=60 TOP_K=60
MAX_TOKEN_TEXT_CHUNK = 4000 MAX_TOKEN_TEXT_CHUNK=4000
MAX_TOKEN_RELATION_DESC = 4000 MAX_TOKEN_RELATION_DESC=4000
MAX_TOKEN_ENTITY_DESC = 4000 MAX_TOKEN_ENTITY_DESC=4000
### Settings relative to indexing ### Settings relative to indexing
CHUNK_SIZE=1200 CHUNK_SIZE=1200
CHUNK_OVERLAP_SIZE=100 CHUNK_OVERLAP_SIZE=100

View File

@@ -16,6 +16,7 @@ from .types import KnowledgeGraph
load_dotenv() load_dotenv()
class TextChunkSchema(TypedDict): class TextChunkSchema(TypedDict):
tokens: int tokens: int
content: str content: str