Skip to content

Commit

Permalink
chore: pr comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simjak committed Jul 3, 2024
1 parent 4252440 commit 5c85749
Show file tree
Hide file tree
Showing 3 changed files with 3,040 additions and 212 deletions.
1,628 changes: 1,417 additions & 211 deletions docs/00-chunkers-intro.ipynb

Large diffs are not rendered by default.

1,622 changes: 1,622 additions & 0 deletions docs/02-chunkers-async.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion semantic_chunkers/chunkers/statistical.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _find_optimal_threshold(self, docs: List[str], similarity_scores: List[float

iteration = 0
median_tokens = 0
calculated_threshold = 0
calculated_threshold = 0.0
while low <= high:
calculated_threshold = (low + high) / 2
split_indices = self._find_split_indices(
Expand Down

0 comments on commit 5c85749

Please sign in to comment.