Skip to content

Commit

Permalink
embedders: add new property documentMaxTemplateBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
guimachiavelli committed Oct 1, 2024
1 parent 9248eb5 commit 8368a69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reference/api/settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,14 @@ For best results, build short templates that only contain highly relevant data.

This field is optional but strongly encouraged for all embedders.

##### `documentTemplateMaxBytes`

The maximum number of bytes a rendered document template text can have when generating embeddings. Longer texts are truncated to fit.

`documentTemplateMaxBytes` must be an integer. It defaults to `400`.

This field is optional for all embedders.

##### `dimensions`

Number of dimensions in the chosen model. If not supplied, Meilisearch tries to infer this value.
Expand Down

0 comments on commit 8368a69

Please sign in to comment.