Lazy-fetch the structured RAG-KAG retrieval segments for a single History record (admin)
curl --request GET \
--url https://pria.praxislxp.com/api/admin/history/{id}/ragSearchimport requests
url = "https://pria.praxislxp.com/api/admin/history/{id}/ragSearch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://pria.praxislxp.com/api/admin/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/admin/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/admin/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/admin/history/{id}/ragSearch")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/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
}
]
}Admin Histories
Lazy-fetch the structured RAG-KAG retrieval segments for a single History record (admin)
List endpoints project out the bulk ragSearch array (multi-KB per row) and expose
only hasRagSearch, ragSearchCount, and ragSearchMode. This endpoint returns
the full structured retrieval array on demand. Permission mirrors getHistoryById:
owner sees their own; otherwise admin must have histories.list on the institution.
Confidential chunks arrive pre-redacted (≤100 chars + suffix when the original exceeded the preview cap).
GET
/
api
/
admin
/
history
/
{id}
/
ragSearch
Lazy-fetch the structured RAG-KAG retrieval segments for a single History record (admin)
curl --request GET \
--url https://pria.praxislxp.com/api/admin/history/{id}/ragSearchimport requests
url = "https://pria.praxislxp.com/api/admin/history/{id}/ragSearch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://pria.praxislxp.com/api/admin/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/admin/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/admin/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/admin/history/{id}/ragSearch")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/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?
⌘I