You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,27 @@ JSON output:
143
143
}
144
144
```
145
145
146
+
#### Hybrid Search <!-- omit in toc -->
147
+
148
+
Hybrid search combines traditional keyword search with semantic search for more relevant results. You need to have an embedder configured in your index settings to use this feature.
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
1028
+
An error containing details about why Meilisearch can't process your request.
1029
+
Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
1965
+
An error containing details about why Meilisearch can't process your request.
1966
+
Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
1937
1967
"""
1968
+
ifbodyisnotNoneandbody.get("embedders"):
1969
+
embedders: dict[str, EmbedderType] = {}
1970
+
fork, vinbody["embedders"].items():
1971
+
source=v.get("source")
1972
+
ifsource=="openAi":
1973
+
embedders[k] =OpenAiEmbedder(**v)
1974
+
elifsource=="huggingFace":
1975
+
embedders[k] =HuggingFaceEmbedder(**v)
1976
+
elifsource=="ollama":
1977
+
embedders[k] =OllamaEmbedder(**v)
1978
+
elifsource=="rest":
1979
+
embedders[k] =RestEmbedder(**v)
1980
+
elifsource=="userProvided":
1981
+
embedders[k] =UserProvidedEmbedder(**v)
1982
+
else:
1983
+
# Default to UserProvidedEmbedder for unknown sources
0 commit comments