-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow fastembed embedding model params configuration in parity with fastembed APIs #416
Allow fastembed embedding model params configuration in parity with fastembed APIs #416
Conversation
Allow setting all fastembed.DefaultEmbedding init args for full pass-through
✅ Deploy Preview for poetic-froyo-8baba7 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@praveen-palanisamy, when will it be merged? |
Hi @praveen-palanisamy , thanks for your contribution! Hi, @DiTo97 I'll try to review it today and see whether we can merge it or not |
Yeap, I have some comments Firstly, I'd like to avoid changing names of the existing API Secondly, I would like to have Tbh, I am not even sure at the moment if we actually need to have P.S. We use python3.10 to generate async client (there is a difference with parentheses starting from python3.11, CI will fail if you generate it with python != 3.10) |
Related #360 |
@joein Thanks for your comments.
Thanks for the pointer to # 360. That was not enough to allow me as a user to use |
|
@joein : Thanks for the comments and responses! I have resolved the remaining items and also re-run the pre-commit hooks to reformat using Python 3.10.x. |
Fine by me, thank you for the contribution! |
…astembed APIs (#416) * Update set_model -> set_model_params; Allow setting all fastembed.DefaultEmbedding init args for full pass-through * Add fastembed test for setting custom embedding model params * Update async client gen to include set_model_params * Update Async client APIs * Add explicit Optional since PEP 484 is still in effect * Regenerate async client APIs * Revert name change: set_model_params -> set_model * Add **kwargs to set_model method sig * Update name set_model_params -> set_model * Regenerate async client APIs * Use and pass **kwargs * Regenerate async client APIs using Py 3.10.x
This PR allows the user to configure the following parameters for the
fastembed
Embeddings via theqdrant_client.set_model_params(...)
method:in addition to the
embedding_model_name
parameter. This brings parity with the init args offastembed
'sEmbedding
classes:DefaultEmbedding
,FlagEmbedding
andJinaEmbedding
. This would allow a clean migration for existingfastembed
users and switch to the simplerqdrant_client.add(...)
API.Added tests for the
qdrant_client.set_model_params(...)
method.This fixes the issue described in Unable to set cache_dir or max_threads when using client.add(...) #415 .
All Submissions:
dev
branch. Did you create your branch fromdev
?New Feature Submissions:
pre-commit
withpip3 install pre-commit
and set up hooks withpre-commit install
?Changes to Core Features: