meilisearch-java
meilisearch-java copied to clipboard
[v1.11.0] AI search changes
Following this central issue
Explanation of the feature
Related Meilisearch engine issue:
- https://github.com/meilisearch/meilisearch/issues/4733
- https://github.com/meilisearch/meilisearch/issues/4873
💥 Breaking changes:
- When using the semantic or the hybrid search,
hybrid.embedderis now a mandatory parameter inGET and POST /indexes/{:indexUid}/search - As a consequence, it is now mandatory to pass
hybrideven for full-vector search (with onlyvectorand notq) embedderis now a mandatory parameter inGET and POST /indexes/{:indexUid}/similar- Ignore non-zero
semanticRatiowhenvectoris passed but notq: a semantic search will be performed.
Changes:
- A new sub setting in
embedderssetting to enable binary quantization and speed up indexing speed. - The default model for OpenAI is now
text-embedding-3-smallinstead oftext-embedding-ada-002. - Limit the maximum length of a rendered document template: when the source of an embedder is set to
huggingFace,openAi,restorollama, thendocumentTemplateMaxBytesis now available as an optional parameter. This parameter describes the number of bytes in which the rendered document template text should fit when trying to embed a document. Longer texts are truncated to fit. - Add the ability to query whether a field is searchable in
documentTemplate: usefield.is_searchable:trueif the field is a searchable attribute, otherwisefalse.