curl --request PUT \
--url https://api.example.com/v1/memory/ner-review/thresholds/{source_type} \
--header 'Content-Type: application/json' \
--data '
{
"auto_confirm_threshold": 0.5,
"review_threshold": 0.5
}
'import requests
url = "https://api.example.com/v1/memory/ner-review/thresholds/{source_type}"
payload = {
"auto_confirm_threshold": 0.5,
"review_threshold": 0.5
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({auto_confirm_threshold: 0.5, review_threshold: 0.5})
};
fetch('https://api.example.com/v1/memory/ner-review/thresholds/{source_type}', 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.example.com/v1/memory/ner-review/thresholds/{source_type}",
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([
'auto_confirm_threshold' => 0.5,
'review_threshold' => 0.5
]),
CURLOPT_HTTPHEADER => [
"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.example.com/v1/memory/ner-review/thresholds/{source_type}"
payload := strings.NewReader("{\n \"auto_confirm_threshold\": 0.5,\n \"review_threshold\": 0.5\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.example.com/v1/memory/ner-review/thresholds/{source_type}")
.header("Content-Type", "application/json")
.body("{\n \"auto_confirm_threshold\": 0.5,\n \"review_threshold\": 0.5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/memory/ner-review/thresholds/{source_type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"auto_confirm_threshold\": 0.5,\n \"review_threshold\": 0.5\n}"
response = http.request(request)
puts response.read_body{
"source_type": "slack",
"auto_confirm_threshold": 0.85,
"review_threshold": 0.5,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Update NER threshold for a source type
Persist new threshold values for a given source type. auto_confirm_threshold must be >= review_threshold.
curl --request PUT \
--url https://api.example.com/v1/memory/ner-review/thresholds/{source_type} \
--header 'Content-Type: application/json' \
--data '
{
"auto_confirm_threshold": 0.5,
"review_threshold": 0.5
}
'import requests
url = "https://api.example.com/v1/memory/ner-review/thresholds/{source_type}"
payload = {
"auto_confirm_threshold": 0.5,
"review_threshold": 0.5
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({auto_confirm_threshold: 0.5, review_threshold: 0.5})
};
fetch('https://api.example.com/v1/memory/ner-review/thresholds/{source_type}', 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.example.com/v1/memory/ner-review/thresholds/{source_type}",
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([
'auto_confirm_threshold' => 0.5,
'review_threshold' => 0.5
]),
CURLOPT_HTTPHEADER => [
"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.example.com/v1/memory/ner-review/thresholds/{source_type}"
payload := strings.NewReader("{\n \"auto_confirm_threshold\": 0.5,\n \"review_threshold\": 0.5\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.example.com/v1/memory/ner-review/thresholds/{source_type}")
.header("Content-Type", "application/json")
.body("{\n \"auto_confirm_threshold\": 0.5,\n \"review_threshold\": 0.5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/memory/ner-review/thresholds/{source_type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"auto_confirm_threshold\": 0.5,\n \"review_threshold\": 0.5\n}"
response = http.request(request)
puts response.read_body{
"source_type": "slack",
"auto_confirm_threshold": 0.85,
"review_threshold": 0.5,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Body
Response
Successful Response
Per-source NER confidence thresholds (row in ner_source_thresholds).
Attributes: source_type: The unstructured source these thresholds apply to. auto_confirm_threshold: Tags at or above this confidence are confirmed automatically without entering the review queue. review_threshold: Tags at or above this threshold (but below auto_confirm_threshold) enter the review queue. Tags below this threshold are silently rejected. updated_at: UTC timestamp of last modification.
Unstructured-data source types that feed the review queue.
Structured sources (CRM, ERP) use deterministic entity resolution and do not produce review queue items.
slack, confluence, gdrive, meeting_transcript, email, notion Confidence >= this → auto-confirm (skip queue).
0 <= x <= 1Confidence >= this → enter review queue. Below → reject.
0 <= x <= 1