kb
Set Collection Rerank Model
Changed onBind or clear the rerank model for a collection.
When set, knowledge_search adds a rerank stage for this KB using the configured model. When cleared, no rerank is performed.
The rerank binding is user-scoped and stored in collection_config, so different users can have different rerank settings for the same collection name.
patch/api/kb/collections/{collection}/rerank-model
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
collectionstring required
Request body
Response
Successful Response
Changes
- info
endpoint added
- info