MeiliSearch/milli/src
meili-bors[bot] 049bd45849
Merge #4371
4371: Fixes embedder issues r=irevoire a=dureuill

# Pull Request

## Related issue
Fixes #4361
Fixes #4370 

## What does this PR do?
- Truncate tokens to 512 for Hugging Face embedders
- Move the tokio runtime to OpenAI so that we no longer have a thread with rayon -> tokio -> rayon
- Spawn a new reqwest client after each new runtime to avoid spurious runtime error 

## Manual tests

- embedding failing document from `@CaroFG` with hugging face
- embedding movies with hugging face
- embedding and searching movies with openai

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
2024-01-29 11:23:57 +00:00
..
documents Rename trait 2023-11-13 13:38:36 +01:00
facet update milli with the new parser_filter 2021-11-04 15:02:36 +01:00
heed_codec Clarify an unreachable unwrap 2023-11-28 14:26:31 +01:00
prompt Remove prompt strategy and fallback 2023-12-14 16:08:41 +01:00
search Use MatchingWords from keyword search instead of the one from vector search 2024-01-23 14:47:28 +01:00
snapshots/index.rs Fix tests 2023-06-14 13:30:52 +02:00
update Merge #4371 2024-01-29 11:23:57 +00:00
vector Don't use a runtime in extract_embedder, use it only for OpenAI 2024-01-29 11:23:18 +01:00
asc_desc.rs fmt 2023-03-30 23:37:26 +02:00
criterion.rs update the syntax of the geoboundingbox filter to uses brackets instead of parens around lat and lng 2023-02-06 16:50:27 +01:00
error.rs Add new errors 2023-12-20 17:16:45 +01:00
external_documents_ids.rs Make clippy happy 2023-11-23 14:11:38 +01:00
fields_ids_map.rs Rename trait 2023-11-13 13:38:36 +01:00
index.rs Various changes 2023-12-14 16:08:41 +01:00
lib.rs hybrid search uses semantic ratio, error handling 2023-12-14 16:08:42 +01:00
proximity.rs Change the naming of attributeScale and wordScale into byAttribute and byWord 2023-12-14 16:31:00 +01:00
score_details.rs Small commit to add hybrid search and autoembedding 2023-12-14 16:07:48 +01:00
snapshot_tests.rs Update tests 2023-11-13 13:36:39 +01:00