Skip to content

Commit 9ba1b42

Browse files
committed
add parameters
1 parent 2566498 commit 9ba1b42

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/content/partials/ai-search/ai-search-api-params.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ Configurations for customizing result ranking. Defaults to `{}`.
2727
- `score_threshold` <Type text="number" /> <MetaInfo text="optional" />
2828
- The minimum match score required for a result to be considered a match. Defaults to `0`. Must be between `0` and `1`.
2929

30+
- `enabled` <Type text="boolean" /> <MetaInfo text="optional" />
31+
- Enables or disables reranking, which reorders retrieved results based on semantic relevance using a reranking model. Defaults to `false`.
32+
33+
- `model` <Type text="string" /> <MetaInfo text="optional" />
34+
- The reranking model to use when reranking is enabled.
35+
3036
`stream` <Type text="boolean" /> <MetaInfo text="optional" />
3137

3238
Returns a stream of results as they are available. Defaults to `false`.

src/content/partials/ai-search/search-api-params.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Configurations for customizing result ranking. Defaults to `{}`.
2323
- `score_threshold` <Type text="number" /> <MetaInfo text="optional" />
2424
- The minimum match score required for a result to be considered a match. Defaults to `0`. Must be between `0` and `1`.
2525

26+
- `enabled` <Type text="boolean" /> <MetaInfo text="optional" />
27+
- Enables or disables reranking, which reorders retrieved results based on semantic relevance using a reranking model. Defaults to `false`.
28+
29+
- `model` <Type text="string" /> <MetaInfo text="optional" />
30+
- The reranking model to use when reranking is enabled.
31+
2632
`filters` <Type text="object" /> <MetaInfo text="optional" />
2733

2834
Narrow down search results based on metadata, like folder and date, so only relevant content is retrieved. For more details, refer to [Metadata filtering](/ai-search/configuration/metadata).

0 commit comments

Comments
 (0)