diff --git a/packages/website/docs/api.mdx b/packages/website/docs/api.mdx index 2625de39..e553e3f1 100644 --- a/packages/website/docs/api.mdx +++ b/packages/website/docs/api.mdx @@ -133,6 +133,10 @@ in case you want to use different credentials for askAi +:::tip +You can use `facetFilters: ['type:content']` to ensure AskAI only uses records where the `type` attribute is `content` (i.e., only records that actually have content). This is useful if your index contains records for navigation, metadata, or other non-content types. +::: + ## `searchParameters` > `type: SearchParameters` | **optional** diff --git a/packages/website/docs/docsearch.mdx b/packages/website/docs/docsearch.mdx index e156067f..07df139e 100644 --- a/packages/website/docs/docsearch.mdx +++ b/packages/website/docs/docsearch.mdx @@ -274,10 +274,6 @@ docsearch({ -```js - -``` - ```jsx +:::tip +You can use `facetFilters: ['type:content']` to ensure AskAI only uses records where the `type` attribute is `content` (i.e., only records that actually have content). This is useful if your index contains records for navigation, metadata, or other non-content types. +::: + ### Sending events You can send search events to your DocSearch index by passing in the `insights` parameter when creating your DocSearch instance.