Skip to content

Commit

Permalink
fix(document-index): use chunk overlap when creating a new index
Browse files Browse the repository at this point in the history
  • Loading branch information
TilTheunissenAA committed Sep 26, 2024
1 parent d75584b commit f066092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
### Features
...
### Fixes
...
- `DocumentIndexClient` now properly sets `chunk_overlap` when creating an index configuration.

### Deprecations
...
### Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ def create_index(

data = {
"chunk_size": index_configuration.chunk_size,
"chunk_overlap": index_configuration.chunk_overlap,
"embedding_type": index_configuration.embedding_type,
}
response = requests.put(url, data=dumps(data), headers=self.headers)
Expand Down

0 comments on commit f066092

Please sign in to comment.