chroma
chroma copied to clipboard
Update sentence_transformer_embedding_function.py
Description of changes
- Improvements & Bug fixes
- Updated the encoding function to support modification of the
batch_size
to prevent memory errors on small GPUs or when using large models when the device is set tocuda
.
- Updated the encoding function to support modification of the
Test plan
- [x] Tests pass locally with
pytest
for python.
Documentation Changes
- The new
batch_size
parameter is now available in the documentation.