From df679eb1194311ee7b5ada8642bf257f5051d1d9 Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Wed, 31 May 2023 11:49:21 +0800 Subject: [PATCH] Update with basemodel Signed-off-by: shiyu22 --- eqa_insert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eqa_insert.py b/eqa_insert.py index 35d54c4..db94d1e 100644 --- a/eqa_insert.py +++ b/eqa_insert.py @@ -25,7 +25,7 @@ class EnhancedQAInsertConfig(BaseModel): """ # config for text_splitter type: Optional[str] = 'RecursiveCharacter' - chunk_size: int = 300 + chunk_size: Optional[int] = 300 splitter_kwargs: Optional[Dict[str, Any]] = {} # config for sentence_embedding model: Optional[str] = 'all-MiniLM-L6-v2'