curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"min_score": 123,
"recency_boost": 123,
"recency_half_life_days": 123,
"source_weights": {},
"include_categories": [
"<string>"
],
"exclude_categories": [
"<string>"
]
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config"
payload = {
"min_score": 123,
"recency_boost": 123,
"recency_half_life_days": 123,
"source_weights": {},
"include_categories": ["<string>"],
"exclude_categories": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
min_score: 123,
recency_boost: 123,
recency_half_life_days: 123,
source_weights: {},
include_categories: ['<string>'],
exclude_categories: ['<string>']
})
};
fetch('https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'min_score' => 123,
'recency_boost' => 123,
'recency_half_life_days' => 123,
'source_weights' => [
],
'include_categories' => [
'<string>'
],
'exclude_categories' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config"
payload := strings.NewReader("{\n \"min_score\": 123,\n \"recency_boost\": 123,\n \"recency_half_life_days\": 123,\n \"source_weights\": {},\n \"include_categories\": [\n \"<string>\"\n ],\n \"exclude_categories\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"min_score\": 123,\n \"recency_boost\": 123,\n \"recency_half_life_days\": 123,\n \"source_weights\": {},\n \"include_categories\": [\n \"<string>\"\n ],\n \"exclude_categories\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"min_score\": 123,\n \"recency_boost\": 123,\n \"recency_half_life_days\": 123,\n \"source_weights\": {},\n \"include_categories\": [\n \"<string>\"\n ],\n \"exclude_categories\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"min_score": 123,
"recency_boost": 123,
"recency_half_life_days": 123,
"source_weights": {},
"include_categories": [
"<string>"
],
"exclude_categories": [
"<string>"
]
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Update knowledge-base search config
Replace a knowledge base’s retrieval re-rank / relevance-boost config. Every field has a no-op default, so a PUT of {} resets the KB to legacy raw-similarity ordering and an omitted knob never silently changes the others. Values are range-clamped server-side. Returns the normalised config. Requires the knowledge:write scope (admin / owner / developer).
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"min_score": 123,
"recency_boost": 123,
"recency_half_life_days": 123,
"source_weights": {},
"include_categories": [
"<string>"
],
"exclude_categories": [
"<string>"
]
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config"
payload = {
"min_score": 123,
"recency_boost": 123,
"recency_half_life_days": 123,
"source_weights": {},
"include_categories": ["<string>"],
"exclude_categories": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
min_score: 123,
recency_boost: 123,
recency_half_life_days: 123,
source_weights: {},
include_categories: ['<string>'],
exclude_categories: ['<string>']
})
};
fetch('https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'min_score' => 123,
'recency_boost' => 123,
'recency_half_life_days' => 123,
'source_weights' => [
],
'include_categories' => [
'<string>'
],
'exclude_categories' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config"
payload := strings.NewReader("{\n \"min_score\": 123,\n \"recency_boost\": 123,\n \"recency_half_life_days\": 123,\n \"source_weights\": {},\n \"include_categories\": [\n \"<string>\"\n ],\n \"exclude_categories\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"min_score\": 123,\n \"recency_boost\": 123,\n \"recency_half_life_days\": 123,\n \"source_weights\": {},\n \"include_categories\": [\n \"<string>\"\n ],\n \"exclude_categories\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/knowledge-bases/{id}/search-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"min_score\": 123,\n \"recency_boost\": 123,\n \"recency_half_life_days\": 123,\n \"source_weights\": {},\n \"include_categories\": [\n \"<string>\"\n ],\n \"exclude_categories\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"min_score": 123,
"recency_boost": 123,
"recency_half_life_days": 123,
"source_weights": {},
"include_categories": [
"<string>"
],
"exclude_categories": [
"<string>"
]
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Dashboard JWT token from Clerk
Path Parameters
Knowledge base ID (kb_…).
Body
Minimum raw vector similarity (0..1) a chunk must clear to reach the agent. 0 = no floor (default).
Recency multiplier strength (0..5). 0 = off (default); fresher docs get up to ×(1 + boost).
Half-life in days of the recency decay (1..3650). Default 30.
Map of source label → score multiplier (0..20, keys matched case-insensitively). Default {}.
Show child attributes
Show child attributes
Allow-list of categories; empty = allow all (default).
2001 - 120Deny-list of categories. Default [].
2001 - 120