-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Currently, the embedders
cannot be added via the sdk, only via http.
Basic example
instead of
curl \
-X PATCH 'http://localhost:7700/indexes/movies/settings' \
-H 'Content-Type: application/json' \
--data-binary '{
"embedders": {
"default": {
"source": "huggingFace",
"model": "bge-base-en-v1.5",
"documentTemplate": "A movie titled '{{doc.title}}' whose description starts with {{doc.body|truncatewords: 20}}"
}
}
}'
Settings::new().with_embedders(HashSet::from("default", Embedder::HuggingFace{...}))
Other
If adding such features to the sdk BEFORE they are out of the experimental stage, I could implement this.
If not, that is fine too ^^
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers