forked from blib-la/captain
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use transformer.js for embeddings (blib-la#74)
## Motivation - added [xenova/transformers.js](https://github.com/xenova/transformers.js) - added CustomHuggingFaceTransformersEmbedding to truncate the input text to maxTokens - updated the vector-store test to use the new embedding - added a test for the new embedding - use the new embedding when creating the vector store
- Loading branch information
1 parent
bc56f24
commit d254612
Showing
9 changed files
with
424 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.