Skip to content

Commit eeb5e85

Browse files
retrieveVectors now returns both query and document embeddings
1 parent a473cf3 commit eeb5e85

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

reference/api/documents.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Use `offset` and `limit` to browse through documents.
4949
| **`filter`** | String/Array of array of strings/`null` | N/A | Refine results based on attributes in the `filterableAttributes` list |
5050
| **`retrieveVectors`** | Boolean | `false` | Return document vector data with search result |
5151
| **`sort`** | `null` | A list of attributes written as an array or as a comma-separated string |
52-
5352
| **`ids`** | Array of primary keys | `null` | Return documents based on their primary keys |
5453

5554
<Note>

reference/api/search.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ By default, [this endpoint returns a maximum of 1000 results](/learn/resources/k
9696
| **[`attributesToSearchOn`](#customize-attributes-to-search-on-at-search-time)** | Array of strings | `["*"]` | Restrict search to the specified attributes |
9797
| **[`hybrid`](#hybrid-search)** | Object | `null` | Return results based on query keywords and meaning |
9898
| **[`vector`](#vector)** | Array of numbers | `null` | Search using a custom query vector |
99-
| **[`retrieveVectors`](#display-_vectors-in-response)** | Boolean | `false` | Return document vector data |
99+
| **[`retrieveVectors`](#display-_vectors-in-response)** | Boolean | `false` | Return document and query vector data |
100100
| **[`locales`](#query-locales)** | Array of strings | `null` | Explicitly specify languages used in a query |
101101
| **[`media`](#media)** | Object | `null` | Perform AI-powered search queries with multimodal content |
102102

@@ -210,7 +210,7 @@ By default, [this endpoint returns a maximum of 1000 results](/learn/resources/k
210210
| **[`attributesToSearchOn`](#customize-attributes-to-search-on-at-search-time)** | Array of strings | `["*"]` | Restrict search to the specified attributes |
211211
| **[`hybrid`](#hybrid-search)** | Object | `null` | Return results based on query keywords and meaning |
212212
| **[`vector`](#vector)** | Array of numbers | `null` | Search using a custom query vector |
213-
| **[`retrieveVectors`](#display-_vectors-in-response)** | Boolean | `false` | Return document vector data |
213+
| **[`retrieveVectors`](#display-_vectors-in-response)** | Boolean | `false` | Return document and query vector data |
214214
| **[`locales`](#query-locales)** | Array of strings | `null` | Explicitly specify languages used in a query |
215215

216216
### Response
@@ -1224,7 +1224,7 @@ If `q` is missing and `semanticRatio` is explicitly set to `0`, Meilisearch perf
12241224
**Expected value**: `true` or `false`<br />
12251225
**Default value**: `false`
12261226

1227-
Return document embedding data with search results. If `true`, Meilisearch will display vector data in each [document's `_vectors` field](/reference/api/documents#_vectors).
1227+
Return document and query embeddings with search results. If `true`, Meilisearch will display vector data in each [document's `_vectors` field](/reference/api/documents#_vectors).
12281228

12291229
#### Example
12301230

0 commit comments

Comments
 (0)