feat: support self-hosted embedding service via BentoML#324
Open
parano wants to merge 9 commits intoShaunwei:mainfrom
Open
feat: support self-hosted embedding service via BentoML#324parano wants to merge 9 commits intoShaunwei:mainfrom
parano wants to merge 9 commits intoShaunwei:mainfrom
Conversation
Shaunwei
reviewed
Aug 10, 2023
Shaunwei
reviewed
Aug 10, 2023
Shaunwei
reviewed
Aug 11, 2023
Owner
|
BentoML does not support loading pydantic models from URLs; output will be a normal dictionary. Looks like the embed function is not compatible |
The client return back a dictionary, but we can load that dict into a pydantic model if needed. It seems like this |
aarnphm
reviewed
Aug 11, 2023
Co-authored-by: shaun <shaunweix@gmail.com>
Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Owner
I still run into errors |
aarnphm
reviewed
Aug 12, 2023
aarnphm
reviewed
Aug 12, 2023
Author
Thanks @Shaunwei, will look into this |
Collaborator
|
Hi - any updates to this PR? |
Hey you can try out this patch |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an option for RealChar to use a self-hosted embedding service powered by SentenceBert and BentoML.
By default, this integration uses the docker image published here
The default model that comes with the docker image is all-MiniLM-L6-v2. RealChar users may customize it to use a different text embedding model based on their needs. Check out the source code for the embedding service here: https://github.com/bentoml/sentence-embedding-bento,
TODO: