You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Documents are dictionaries withtwo requiredkeys: `id` and `text`. All other keys/value pairs are stored asmetadata for the document.
Documents are dictionaries withone requiredkey: `id`. All other keys/value pairs are storedand can be chunked, embedded, broken into tsvectors, and searched overasspecified by a `Pipeline`.
{% tabs %}
{% tab title="JavaScript" %}
```javascript
const documents = [
{
id: "Document One",
id: "document_one",
title: "Document One",
text: "document one contents...",
random_key: "this will be metadata for the document",
random_key: "here is some random data",
},
{
id: "Document Two",
id: "document_two",
title: "Document Two",
text: "document two contents...",
random_key: "this will be metadata for the document",
The `last_row_id` can be taken from the `row_id` field in the returned document's dictionary.
The `last_row_id` can be taken from the `row_id` field in the returned document's dictionary. Keyset pagination does not currently work when specifying the `order_by` key.
### Filtering Documents
Metadata and full text filtering are supported just like they areinvector recall.
Documents can be filtered by passinginthe `filter` key.
Documents can be sorted on anymetadatakey. Note that this does not currently work well with Keyset based pagination. If paginating and sorting, use Limit-Offset based pagination.
Documents can be sorted on any key. Note that this does not currently work well with Keyset based pagination. If paginating and sorting, use Limit-Offset based pagination.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.