mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 07:56:28 +00:00 
			
		
		
		
	Merge branch 'main' into granular-filterable-attributes
This commit is contained in:
		| @@ -102,6 +102,10 @@ pub struct IndexStats { | ||||
|     /// Stats of the documents database. | ||||
|     #[serde(default)] | ||||
|     pub documents_database_stats: DatabaseStats, | ||||
|  | ||||
|     #[serde(default, skip_serializing)] | ||||
|     pub number_of_documents: Option<u64>, | ||||
|  | ||||
|     /// Size taken up by the index' DB, in bytes. | ||||
|     /// | ||||
|     /// This includes the size taken by both the used and free pages of the DB, and as the free pages | ||||
| @@ -143,6 +147,7 @@ impl IndexStats { | ||||
|             number_of_embeddings: Some(arroy_stats.number_of_embeddings), | ||||
|             number_of_embedded_documents: Some(arroy_stats.documents.len()), | ||||
|             documents_database_stats: index.documents_stats(rtxn)?.unwrap_or_default(), | ||||
|             number_of_documents: None, | ||||
|             database_size: index.on_disk_size()?, | ||||
|             used_database_size: index.used_size()?, | ||||
|             primary_key: index.primary_key(rtxn)?.map(|s| s.to_string()), | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, status: enqueued, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, status: enqueued, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
| enqueued [0,] | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"default": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(4), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
| enqueued [] | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_embedders.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 1 {uid: 1, batch_uid: 1, status: succeeded, details: { received_documents: 1, indexed_documents: Some(1) }, kind: DocumentAdditionOrUpdate { index_uid: "doggos", primary_key: Some("id"), method: UpdateDocuments, content_file: 00000000-0000-0000-0000-000000000000, documents_count: 1, allow_index_creation: true }} | ||||
| 2 {uid: 2, batch_uid: 2, status: succeeded, details: { received_documents: 1, indexed_documents: Some(1) }, kind: DocumentAdditionOrUpdate { index_uid: "doggos", primary_key: None, method: UpdateDocuments, content_file: 00000000-0000-0000-0000-000000000001, documents_count: 1, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_embedders.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 1 {uid: 1, batch_uid: 1, status: succeeded, details: { received_documents: 1, indexed_documents: Some(1) }, kind: DocumentAdditionOrUpdate { index_uid: "doggos", primary_key: Some("id"), method: UpdateDocuments, content_file: 00000000-0000-0000-0000-000000000000, documents_count: 1, allow_index_creation: true }} | ||||
| 2 {uid: 2, status: enqueued, details: { received_documents: 1, indexed_documents: None }, kind: DocumentAdditionOrUpdate { index_uid: "doggos", primary_key: None, method: UpdateDocuments, content_file: 00000000-0000-0000-0000-000000000001, documents_count: 1, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_embedders.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 1 {uid: 1, batch_uid: 1, status: succeeded, details: { received_documents: 1, indexed_documents: Some(1) }, kind: DocumentAdditionOrUpdate { index_uid: "doggos", primary_key: Some("id"), method: UpdateDocuments, content_file: 00000000-0000-0000-0000-000000000000, documents_count: 1, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_embedders.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 1 {uid: 1, status: enqueued, details: { received_documents: 1, indexed_documents: None }, kind: DocumentAdditionOrUpdate { index_uid: "doggos", primary_key: Some("id"), method: UpdateDocuments, content_file: 00000000-0000-0000-0000-000000000000, documents_count: 1, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_embedders.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, status: enqueued, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, status: enqueued, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
| enqueued [0,] | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_embedders.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> } }, kind: SettingsUpdate { index_uid: "doggos", new_settings: Settings { displayed_attributes: WildcardSetting(NotSet), searchable_attributes: WildcardSetting(NotSet), filterable_attributes: NotSet, sortable_attributes: NotSet, ranking_rules: NotSet, stop_words: NotSet, non_separator_tokens: NotSet, separator_tokens: NotSet, dictionary: NotSet, synonyms: NotSet, distinct_attribute: NotSet, proximity_precision: NotSet, typo_tolerance: NotSet, faceting: NotSet, pagination: NotSet, embedders: Set({"A_fakerest": Set(EmbeddingSettings { source: Set(Rest), model: NotSet, revision: NotSet, pooling: NotSet, api_key: Set("My super secret"), dimensions: Set(384), binary_quantized: NotSet, document_template: NotSet, document_template_max_bytes: NotSet, url: Set("http://localhost:7777"), request: Set(String("{{text}}")), response: Set(String("{{embedding}}")), headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet }), "B_small_hf": Set(EmbeddingSettings { source: Set(HuggingFace), model: Set("sentence-transformers/all-MiniLM-L6-v2"), revision: Set("e4ce9877abf3edfe10b0d82785e83bdcb973e22e"), pooling: NotSet, api_key: NotSet, dimensions: NotSet, binary_quantized: NotSet, document_template: Set("{{doc.doggo}} the {{doc.breed}} best doggo"), document_template_max_bytes: NotSet, url: NotSet, request: NotSet, response: NotSet, headers: NotSet, search_embedder: NotSet, indexing_embedder: NotSet, distribution: NotSet })}), search_cutoff_ms: NotSet, localized_attributes: NotSet, facet_search: NotSet, prefix_search: NotSet, _kind: PhantomData<meilisearch_types::settings::Unchecked> }, is_deletion: false, allow_index_creation: true }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
| enqueued [] | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_failure.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { from: (1, 12, 0), to: (1, 13, 1) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { from: (1, 12, 0), to: (1, 13, 3) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 1 {uid: 1, batch_uid: 1, status: succeeded, details: { primary_key: Some("mouse") }, kind: IndexCreation { index_uid: "catto", primary_key: Some("mouse") }} | ||||
| 2 {uid: 2, batch_uid: 2, status: succeeded, details: { primary_key: Some("bone") }, kind: IndexCreation { index_uid: "doggo", primary_key: Some("bone") }} | ||||
| 3 {uid: 3, batch_uid: 3, status: failed, error: ResponseError { code: 200, message: "Index `doggo` already exists.", error_code: "index_already_exists", error_type: "invalid_request", error_link: "https://docs.meilisearch.com/errors#index_already_exists" }, details: { primary_key: Some("bone") }, kind: IndexCreation { index_uid: "doggo", primary_key: Some("bone") }} | ||||
| @@ -57,7 +57,7 @@ girafo: { number_of_documents: 0, field_distribution: {} } | ||||
| [timestamp] [4,] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Batches: | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.1"}, stats: {"totalNbTasks":1,"status":{"succeeded":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.3"}, stats: {"totalNbTasks":1,"status":{"succeeded":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| 1 {uid: 1, details: {"primaryKey":"mouse"}, stats: {"totalNbTasks":1,"status":{"succeeded":1},"types":{"indexCreation":1},"indexUids":{"catto":1}}, } | ||||
| 2 {uid: 2, details: {"primaryKey":"bone"}, stats: {"totalNbTasks":1,"status":{"succeeded":1},"types":{"indexCreation":1},"indexUids":{"doggo":1}}, } | ||||
| 3 {uid: 3, details: {"primaryKey":"bone"}, stats: {"totalNbTasks":1,"status":{"failed":1},"types":{"indexCreation":1},"indexUids":{"doggo":1}}, } | ||||
|   | ||||
| @@ -1,13 +1,12 @@ | ||||
| --- | ||||
| source: crates/index-scheduler/src/scheduler/test_failure.rs | ||||
| snapshot_kind: text | ||||
| --- | ||||
| ### Autobatching Enabled = true | ||||
| ### Processing batch None: | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, status: enqueued, details: { from: (1, 12, 0), to: (1, 13, 1) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 0 {uid: 0, status: enqueued, details: { from: (1, 12, 0), to: (1, 13, 3) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
| enqueued [0,] | ||||
|   | ||||
| @@ -1,13 +1,12 @@ | ||||
| --- | ||||
| source: crates/index-scheduler/src/scheduler/test_failure.rs | ||||
| snapshot_kind: text | ||||
| --- | ||||
| ### Autobatching Enabled = true | ||||
| ### Processing batch None: | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, status: enqueued, details: { from: (1, 12, 0), to: (1, 13, 1) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 0 {uid: 0, status: enqueued, details: { from: (1, 12, 0), to: (1, 13, 3) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 1 {uid: 1, status: enqueued, details: { primary_key: Some("mouse") }, kind: IndexCreation { index_uid: "catto", primary_key: Some("mouse") }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_failure.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: failed, error: ResponseError { code: 200, message: "Planned failure for tests.", error_code: "internal", error_type: "internal", error_link: "https://docs.meilisearch.com/errors#internal" }, details: { from: (1, 12, 0), to: (1, 13, 1) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 0 {uid: 0, batch_uid: 0, status: failed, error: ResponseError { code: 200, message: "Planned failure for tests.", error_code: "internal", error_type: "internal", error_link: "https://docs.meilisearch.com/errors#internal" }, details: { from: (1, 12, 0), to: (1, 13, 3) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 1 {uid: 1, status: enqueued, details: { primary_key: Some("mouse") }, kind: IndexCreation { index_uid: "catto", primary_key: Some("mouse") }} | ||||
| ---------------------------------------------------------------------- | ||||
| ### Status: | ||||
| @@ -37,7 +37,7 @@ catto [1,] | ||||
| [timestamp] [0,] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Batches: | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.1"}, stats: {"totalNbTasks":1,"status":{"failed":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.3"}, stats: {"totalNbTasks":1,"status":{"failed":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| ---------------------------------------------------------------------- | ||||
| ### Batch to tasks mapping: | ||||
| 0 [0,] | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_failure.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: failed, error: ResponseError { code: 200, message: "Planned failure for tests.", error_code: "internal", error_type: "internal", error_link: "https://docs.meilisearch.com/errors#internal" }, details: { from: (1, 12, 0), to: (1, 13, 1) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 0 {uid: 0, batch_uid: 0, status: failed, error: ResponseError { code: 200, message: "Planned failure for tests.", error_code: "internal", error_type: "internal", error_link: "https://docs.meilisearch.com/errors#internal" }, details: { from: (1, 12, 0), to: (1, 13, 3) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 1 {uid: 1, status: enqueued, details: { primary_key: Some("mouse") }, kind: IndexCreation { index_uid: "catto", primary_key: Some("mouse") }} | ||||
| 2 {uid: 2, status: enqueued, details: { primary_key: Some("bone") }, kind: IndexCreation { index_uid: "doggo", primary_key: Some("bone") }} | ||||
| ---------------------------------------------------------------------- | ||||
| @@ -40,7 +40,7 @@ doggo [2,] | ||||
| [timestamp] [0,] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Batches: | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.1"}, stats: {"totalNbTasks":1,"status":{"failed":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.3"}, stats: {"totalNbTasks":1,"status":{"failed":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| ---------------------------------------------------------------------- | ||||
| ### Batch to tasks mapping: | ||||
| 0 [0,] | ||||
|   | ||||
| @@ -6,7 +6,7 @@ source: crates/index-scheduler/src/scheduler/test_failure.rs | ||||
| [] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Tasks: | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { from: (1, 12, 0), to: (1, 13, 1) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 0 {uid: 0, batch_uid: 0, status: succeeded, details: { from: (1, 12, 0), to: (1, 13, 3) }, kind: UpgradeDatabase { from: (1, 12, 0) }} | ||||
| 1 {uid: 1, status: enqueued, details: { primary_key: Some("mouse") }, kind: IndexCreation { index_uid: "catto", primary_key: Some("mouse") }} | ||||
| 2 {uid: 2, status: enqueued, details: { primary_key: Some("bone") }, kind: IndexCreation { index_uid: "doggo", primary_key: Some("bone") }} | ||||
| 3 {uid: 3, status: enqueued, details: { primary_key: Some("bone") }, kind: IndexCreation { index_uid: "doggo", primary_key: Some("bone") }} | ||||
| @@ -43,7 +43,7 @@ doggo [2,3,] | ||||
| [timestamp] [0,] | ||||
| ---------------------------------------------------------------------- | ||||
| ### All Batches: | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.1"}, stats: {"totalNbTasks":1,"status":{"succeeded":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| 0 {uid: 0, details: {"upgradeFrom":"v1.12.0","upgradeTo":"v1.13.3"}, stats: {"totalNbTasks":1,"status":{"succeeded":1},"types":{"upgradeDatabase":1},"indexUids":{}}, } | ||||
| ---------------------------------------------------------------------- | ||||
| ### Batch to tasks mapping: | ||||
| 0 [0,] | ||||
|   | ||||
| @@ -104,9 +104,10 @@ fn import_vectors() { | ||||
|  | ||||
|         let configs = index_scheduler.embedders("doggos".to_string(), configs).unwrap(); | ||||
|         let (hf_embedder, _, _) = configs.get(&simple_hf_name).unwrap(); | ||||
|         let beagle_embed = hf_embedder.embed_one(S("Intel the beagle best doggo"), None).unwrap(); | ||||
|         let lab_embed = hf_embedder.embed_one(S("Max the lab best doggo"), None).unwrap(); | ||||
|         let patou_embed = hf_embedder.embed_one(S("kefir the patou best doggo"), None).unwrap(); | ||||
|         let beagle_embed = | ||||
|             hf_embedder.embed_search(S("Intel the beagle best doggo"), None).unwrap(); | ||||
|         let lab_embed = hf_embedder.embed_search(S("Max the lab best doggo"), None).unwrap(); | ||||
|         let patou_embed = hf_embedder.embed_search(S("kefir the patou best doggo"), None).unwrap(); | ||||
|         (fakerest_name, simple_hf_name, beagle_embed, lab_embed, patou_embed) | ||||
|     }; | ||||
|  | ||||
|   | ||||
| @@ -24,10 +24,11 @@ pub fn upgrade_index_scheduler( | ||||
|     let current_minor = to.1; | ||||
|     let current_patch = to.2; | ||||
|  | ||||
|     let upgrade_functions: &[&dyn UpgradeIndexScheduler] = &[&V1_12_ToCurrent {}]; | ||||
|     let upgrade_functions: &[&dyn UpgradeIndexScheduler] = &[&ToCurrentNoOp {}]; | ||||
|  | ||||
|     let start = match from { | ||||
|         (1, 12, _) => 0, | ||||
|         (1, 13, _) => 0, | ||||
|         (major, minor, patch) => { | ||||
|             if major > current_major | ||||
|                 || (major == current_major && minor > current_minor) | ||||
| @@ -85,9 +86,9 @@ pub fn upgrade_index_scheduler( | ||||
| } | ||||
|  | ||||
| #[allow(non_camel_case_types)] | ||||
| struct V1_12_ToCurrent {} | ||||
| struct ToCurrentNoOp {} | ||||
|  | ||||
| impl UpgradeIndexScheduler for V1_12_ToCurrent { | ||||
| impl UpgradeIndexScheduler for ToCurrentNoOp { | ||||
|     fn upgrade( | ||||
|         &self, | ||||
|         _env: &Env, | ||||
|   | ||||
| @@ -429,9 +429,10 @@ impl ErrorCode for milli::Error { | ||||
|                     | UserError::InvalidUrl { .. } | ||||
|                     | UserError::InvalidSettingsDocumentTemplateMaxBytes { .. } | ||||
|                     | UserError::InvalidPrompt(_) | ||||
|                     | UserError::InvalidDisableBinaryQuantization { .. } => { | ||||
|                         Code::InvalidSettingsEmbedders | ||||
|                     } | ||||
|                     | UserError::InvalidDisableBinaryQuantization { .. } | ||||
|                     | UserError::InvalidSourceForNested { .. } | ||||
|                     | UserError::MissingSourceForNested { .. } | ||||
|                     | UserError::InvalidSettingsEmbedder { .. } => Code::InvalidSettingsEmbedders, | ||||
|                     UserError::TooManyEmbedders(_) => Code::InvalidSettingsEmbedders, | ||||
|                     UserError::InvalidPromptForEmbeddings(..) => Code::InvalidSettingsEmbedders, | ||||
|                     UserError::NoPrimaryKeyCandidateFound => Code::IndexPrimaryKeyNoCandidateFound, | ||||
|   | ||||
| @@ -170,5 +170,5 @@ german = ["meilisearch-types/german"] | ||||
| turkish = ["meilisearch-types/turkish"] | ||||
|  | ||||
| [package.metadata.mini-dashboard] | ||||
| assets-url = "https://github.com/meilisearch/mini-dashboard/releases/download/v0.2.17/build.zip" | ||||
| sha1 = "29e92ce25f306208a9c86f013279c736bdc1e034" | ||||
| assets-url = "https://github.com/meilisearch/mini-dashboard/releases/download/v0.2.18/build.zip" | ||||
| sha1 = "b408a30dcb6e20cddb0c153c23385bcac4c8e912" | ||||
|   | ||||
| @@ -364,7 +364,7 @@ fn check_version( | ||||
|     let (bin_major, bin_minor, bin_patch) = binary_version; | ||||
|     let (db_major, db_minor, db_patch) = get_version(&opt.db_path)?; | ||||
|  | ||||
|     if db_major != bin_major || db_minor != bin_minor || db_patch > bin_patch { | ||||
|     if db_major != bin_major || db_minor != bin_minor || db_patch != bin_patch { | ||||
|         if opt.experimental_dumpless_upgrade { | ||||
|             update_version_file_for_dumpless_upgrade( | ||||
|                 opt, | ||||
|   | ||||
| @@ -514,7 +514,10 @@ pub struct IndexStats { | ||||
| impl From<index_scheduler::IndexStats> for IndexStats { | ||||
|     fn from(stats: index_scheduler::IndexStats) -> Self { | ||||
|         IndexStats { | ||||
|             number_of_documents: stats.inner_stats.documents_database_stats.number_of_entries(), | ||||
|             number_of_documents: stats | ||||
|                 .inner_stats | ||||
|                 .number_of_documents | ||||
|                 .unwrap_or(stats.inner_stats.documents_database_stats.number_of_entries()), | ||||
|             raw_document_db_size: stats.inner_stats.documents_database_stats.total_value_size(), | ||||
|             avg_document_size: stats.inner_stats.documents_database_stats.average_value_size(), | ||||
|             is_indexing: stats.is_indexing, | ||||
|   | ||||
| @@ -523,6 +523,7 @@ impl EmbeddersAnalytics { | ||||
|                     EmbedderSource::UserProvided => sources.insert("userProvided".to_string()), | ||||
|                     EmbedderSource::Ollama => sources.insert("ollama".to_string()), | ||||
|                     EmbedderSource::Rest => sources.insert("rest".to_string()), | ||||
|                     EmbedderSource::Composite => sources.insert("composite".to_string()), | ||||
|                 }; | ||||
|             } | ||||
|         }; | ||||
|   | ||||
| @@ -916,7 +916,7 @@ fn prepare_search<'t>( | ||||
|                     let deadline = std::time::Instant::now() + std::time::Duration::from_secs(10); | ||||
|  | ||||
|                     embedder | ||||
|                         .embed_one(query.q.clone().unwrap(), Some(deadline)) | ||||
|                         .embed_search(query.q.clone().unwrap(), Some(deadline)) | ||||
|                         .map_err(milli::vector::Error::from) | ||||
|                         .map_err(milli::Error::from)? | ||||
|                 } | ||||
|   | ||||
| @@ -34,6 +34,10 @@ impl Value { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     pub fn has_uid(&self) -> bool { | ||||
|         self["uid"].as_u64().is_some() || self["taskUid"].as_u64().is_some() | ||||
|     } | ||||
|  | ||||
|     /// Return `true` if the `status` field is set to `succeeded`. | ||||
|     /// Panic if the `status` field doesn't exists. | ||||
|     #[track_caller] | ||||
|   | ||||
| @@ -4,3 +4,4 @@ mod get_settings; | ||||
| mod prefix_search_settings; | ||||
| mod proximity_settings; | ||||
| mod tokenizer_customization; | ||||
| mod vectors; | ||||
|   | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `apiKey` unavailable for source `huggingFace`.\n  - note: `apiKey` is available for sources: `openAi`, `ollama`, `rest`\n  - note: available fields for source `huggingFace`: `source`, `model`, `revision`, `pooling`, `documentTemplate`, `documentTemplateMaxBytes`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "huggingFace", | ||||
|         "binaryQuantized": false | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `dimensions` unavailable for source `huggingFace`.\n  - note: `dimensions` is available for sources: `openAi`, `ollama`, `userProvided`, `rest`\n  - note: available fields for source `huggingFace`: `source`, `model`, `revision`, `pooling`, `documentTemplate`, `documentTemplateMaxBytes`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "huggingFace", | ||||
|         "model": "sentence-transformers/all-MiniLM-L6-v2" | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "huggingFace", | ||||
|         "pooling": "forceMean" | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,29 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "failed", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "huggingFace", | ||||
|         "revision": "e4ce9877abf3edfe10b0d82785e83bdcb973e22e" | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": { | ||||
|     "message": "Index `test`: Error while generating embeddings: error: fetching file from HG_HUB failed:\n  - request error: https://huggingface.co/BAAI/bge-base-en-v1.5/resolve/e4ce9877abf3edfe10b0d82785e83bdcb973e22e/config.json: status code 404", | ||||
|     "code": "vector_embedding_error", | ||||
|     "type": "invalid_request", | ||||
|     "link": "https://docs.meilisearch.com/errors#vector_embedding_error" | ||||
|   }, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,26 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "ollama", | ||||
|         "model": "all-minilm", | ||||
|         "apiKey": "XXX...", | ||||
|         "dimensions": 768 | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,26 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "ollama", | ||||
|         "model": "all-minilm", | ||||
|         "dimensions": 768, | ||||
|         "binaryQuantized": false | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,25 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "ollama", | ||||
|         "model": "all-minilm", | ||||
|         "dimensions": 768 | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,25 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "ollama", | ||||
|         "model": "all-minilm", | ||||
|         "dimensions": 768 | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `pooling` unavailable for source `ollama`.\n  - note: `pooling` is available for sources: `huggingFace`\n  - note: available fields for source `ollama`: `source`, `model`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `revision` unavailable for source `ollama`.\n  - note: `revision` is available for sources: `huggingFace`\n  - note: available fields for source `ollama`: `source`, `model`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "openAi", | ||||
|         "apiKey": "XXX..." | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "openAi", | ||||
|         "binaryQuantized": false | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "openAi", | ||||
|         "dimensions": 768 | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "openAi", | ||||
|         "model": "text-embedding-3-small" | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `pooling` unavailable for source `openAi`.\n  - note: `pooling` is available for sources: `huggingFace`\n  - note: available fields for source `openAi`: `source`, `model`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `revision` unavailable for source `openAi`.\n  - note: `revision` is available for sources: `huggingFace`\n  - note: available fields for source `openAi`: `source`, `model`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,32 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "rest", | ||||
|         "apiKey": "XXX...", | ||||
|         "dimensions": 768, | ||||
|         "url": "http://rest.example/", | ||||
|         "request": { | ||||
|           "text": "{{text}}" | ||||
|         }, | ||||
|         "response": { | ||||
|           "embedding": "{{embedding}}" | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,32 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "rest", | ||||
|         "dimensions": 768, | ||||
|         "binaryQuantized": false, | ||||
|         "url": "http://rest.example/", | ||||
|         "request": { | ||||
|           "text": "{{text}}" | ||||
|         }, | ||||
|         "response": { | ||||
|           "embedding": "{{embedding}}" | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,31 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "rest", | ||||
|         "dimensions": 768, | ||||
|         "url": "http://rest.example/", | ||||
|         "request": { | ||||
|           "text": "{{text}}" | ||||
|         }, | ||||
|         "response": { | ||||
|           "embedding": "{{embedding}}" | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `model` unavailable for source `rest`.\n  - note: `model` is available for sources: `openAi`, `huggingFace`, `ollama`\n  - note: available fields for source `rest`: `source`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `request`, `response`, `headers`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `pooling` unavailable for source `rest`.\n  - note: `pooling` is available for sources: `huggingFace`\n  - note: available fields for source `rest`: `source`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `request`, `response`, `headers`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `revision` unavailable for source `rest`.\n  - note: `revision` is available for sources: `huggingFace`\n  - note: available fields for source `rest`: `source`, `apiKey`, `dimensions`, `documentTemplate`, `documentTemplateMaxBytes`, `url`, `request`, `response`, `headers`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `apiKey` unavailable for source `userProvided`.\n  - note: `apiKey` is available for sources: `openAi`, `ollama`, `rest`\n  - note: available fields for source `userProvided`: `source`, `dimensions`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,25 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "userProvided", | ||||
|         "dimensions": 768, | ||||
|         "binaryQuantized": false | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 202 Accepted | ||||
| @@ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "taskUid": "[taskUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "enqueued", | ||||
|   "type": "settingsUpdate", | ||||
|   "enqueuedAt": "[enqueuedAt]" | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "uid": "[uid]", | ||||
|   "batchUid": "[batchUid]", | ||||
|   "indexUid": "test", | ||||
|   "status": "succeeded", | ||||
|   "type": "settingsUpdate", | ||||
|   "canceledBy": null, | ||||
|   "details": { | ||||
|     "embedders": { | ||||
|       "test": { | ||||
|         "source": "userProvided", | ||||
|         "dimensions": 768 | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "error": null, | ||||
|   "duration": "[duration]", | ||||
|   "enqueuedAt": "[enqueuedAt]", | ||||
|   "startedAt": "[startedAt]", | ||||
|   "finishedAt": "[finishedAt]" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `model` unavailable for source `userProvided`.\n  - note: `model` is available for sources: `openAi`, `huggingFace`, `ollama`\n  - note: available fields for source `userProvided`: `source`, `dimensions`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| 400 Bad Request | ||||
| @@ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: crates/meilisearch/tests/settings/vectors.rs | ||||
| --- | ||||
| { | ||||
|   "message": "`.embedders.test`: Field `pooling` unavailable for source `userProvided`.\n  - note: `pooling` is available for sources: `huggingFace`\n  - note: available fields for source `userProvided`: `source`, `dimensions`, `distribution`, `binaryQuantized`", | ||||
|   "code": "invalid_settings_embedders", | ||||
|   "type": "invalid_request", | ||||
|   "link": "https://docs.meilisearch.com/errors#invalid_settings_embedders" | ||||
| } | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user