Refactoring the EmailObject build process

This commit is contained in:
liyaxing
2023-09-14 20:57:53 +08:00
parent e1bba92ec2
commit 6ea83729a5
3 changed files with 45 additions and 11 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class ChunkListWriter:
def create_chunk_list_from_text(
self, text: str, chunk_max_words: int, separator_chars: str = ".,"
) -> Tuple[List[ChunkID], HashValue]:
) -> ChunkList:
text_list = self._split_text_list(text, chunk_max_words, separator_chars)
chunk_list = []
hash_obj = hashlib.sha256()