Skip to content

Commit 67971b2

Browse files
committed
Update params
1 parent c442539 commit 67971b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

deploy_ai_search_indexes/src/deploy_ai_search_indexes/ai_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ def get_mark_up_cleaner_skill(self, chunk_by_page: False) -> WebApiSkill:
273273

274274
def get_semantic_chunker_skill(
275275
self,
276-
num_surrounding_sentences: int = 1,
276+
num_surrounding_sentences: int = 2,
277277
similarity_threshold: float = 0.8,
278-
max_chunk_tokens: int = 200,
279-
min_chunk_tokens: int = 50,
278+
max_chunk_tokens: int = 500,
279+
min_chunk_tokens: int = 150,
280280
) -> SplitSkill:
281281
"""Get the skill for text split.
282282

image_processing/src/image_processing/semantic_text_chunker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
class SemanticTextChunker:
1313
def __init__(
1414
self,
15-
num_surrounding_sentences: int = 1,
15+
num_surrounding_sentences: int = 2,
1616
similarity_threshold: float = 0.8,
17-
max_chunk_tokens: int = 200,
18-
min_chunk_tokens: int = 50,
17+
max_chunk_tokens: int = 500,
18+
min_chunk_tokens: int = 150,
1919
):
2020
self.num_surrounding_sentences = num_surrounding_sentences
2121
self.similarity_threshold = similarity_threshold

0 commit comments

Comments
 (0)