documentation icon indicating copy to clipboard operation
documentation copied to clipboard

v1.11: Document template fields now include a new `is_searchable` property

Open guimachiavelli opened this issue 5 months ago • 0 comments

field.is_searchable allows users to filter out any documents that are not searchable. This changes the default value of documentTemplate to:

{% for field in fields %}
  {% if field.is_searchable and not field.value == nil %}
    {{ field.name }}: {{ field.value }}\n
  {% endif %}
{% endfor %}

The new default value only applies to embedders created with >=v1.11

Tasks

  • [ ] Update reference/api/settings#embedders-object
  • [ ] Update reference/api/settings#documenttemplate

References

  • PRD: https://www.notion.so/meilisearch/v1-11-AI-search-changes-0e37727193884a70999f254fa953ce6e?pvs=4#1dd6f0eee5a1422888e1c5d48e107cd1
  • SME: @dureuill

guimachiavelli avatar Sep 24 '24 16:09 guimachiavelli