Per-server RAG ingestion load
curl --request GET \
--url https://pria.praxislxp.com/api/admin/ingestion/servers \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/admin/ingestion/servers"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/admin/ingestion/servers', 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/ingestion/servers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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/ingestion/servers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
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/ingestion/servers")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/ingestion/servers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"servers": [
{
"server": "ip-10-0-1-42:1734",
"running": 123,
"done": 123,
"error": 123,
"chunks": 123,
"sanitized": 123,
"embedded": 123,
"cpuPct": 123
}
],
"generatedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"message": "Authentication Required"
}{
"success": false,
"message": "Super admin only."
}{
"success": false,
"message": "Ingestion servers failed"
}Admin Ingestion
Per-server RAG ingestion load
Returns per-server RAG ingestion throughput, keyed on the persisted ingestion.processedBy attribution (hostname:pid). Two DocumentDB-safe $group aggregations over the uploads collection (running uploads, plus done/error within the last hour) are merged with the serverInstance roster for host liveness + worker CPU. Backs the System -> RAG Jobs ‘Servers’ card (IngestionServersCard). Mirrors GET /api/admin/kag/servers. Super-admin only.
GET
/
api
/
admin
/
ingestion
/
servers
Per-server RAG ingestion load
curl --request GET \
--url https://pria.praxislxp.com/api/admin/ingestion/servers \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/admin/ingestion/servers"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/admin/ingestion/servers', 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/ingestion/servers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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/ingestion/servers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
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/ingestion/servers")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/ingestion/servers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"servers": [
{
"server": "ip-10-0-1-42:1734",
"running": 123,
"done": 123,
"error": 123,
"chunks": 123,
"sanitized": 123,
"embedded": 123,
"cpuPct": 123
}
],
"generatedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"message": "Authentication Required"
}{
"success": false,
"message": "Super admin only."
}{
"success": false,
"message": "Ingestion servers failed"
}Was this page helpful?
⌘I