Lazy-fetch the structured RAG-KAG retrieval segments for a single History record
curl --request GET \
--url https://pria.praxislxp.com/api/user/history/{id}/ragSearchimport requests
url = "https://pria.praxislxp.com/api/user/history/{id}/ragSearch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://pria.praxislxp.com/api/user/history/{id}/ragSearch', 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://pria.praxislxp.com/api/user/history/{id}/ragSearch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/history/{id}/ragSearch"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/history/{id}/ragSearch")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/history/{id}/ragSearch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"ragSearch": [
{
"uploadId": "<string>",
"originalname": "<string>",
"chunkIndex": 123,
"score": 123,
"length": 123,
"chunkText": "<string>",
"confidential": true
}
]
}User History
Lazy-fetch the structured RAG-KAG retrieval segments for a single History record
List endpoints (/api/user/histories, /api/user/favorites) project out the
bulk ragSearch array (multi-KB per row) and expose only hasRagSearch,
ragSearchCount, and ragSearchMode for the summary line. This endpoint
returns the full structured retrieval array on demand, fired by the UI when
the user expands the “RAG/KAG Search Results” <details> block.
Confidential chunks arrive pre-redacted (≤100 chars + “(rest is confidential)” suffix when the original exceeded the preview cap).
GET
/
api
/
user
/
history
/
{id}
/
ragSearch
Lazy-fetch the structured RAG-KAG retrieval segments for a single History record
curl --request GET \
--url https://pria.praxislxp.com/api/user/history/{id}/ragSearchimport requests
url = "https://pria.praxislxp.com/api/user/history/{id}/ragSearch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://pria.praxislxp.com/api/user/history/{id}/ragSearch', 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://pria.praxislxp.com/api/user/history/{id}/ragSearch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/history/{id}/ragSearch"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/history/{id}/ragSearch")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/history/{id}/ragSearch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"ragSearch": [
{
"uploadId": "<string>",
"originalname": "<string>",
"chunkIndex": 123,
"score": 123,
"length": 123,
"chunkText": "<string>",
"confidential": true
}
]
}Was this page helpful?
Lazy-fetch the bulk thinking and reasoning array for a single History recordRead an assistant response aloud using the configured speech model
⌘I