curl --request POST \
--url https://pria.praxislxp.com/api/user/files/search-content \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"query": "quantum gravity",
"selectedUploadIds": [
"<string>"
],
"minScore": 0.1,
"limit": 50
}
'{
"success": true,
"query": "quantum gravity",
"results": [
{
"uploadId": "<string>",
"chunkId": "<string>",
"chunkIndex": 123,
"snippet": "<string>",
"score": 123,
"upload": {
"_id": "<string>",
"originalname": "<string>",
"filesize": 123,
"mimetype": "<string>",
"file_title": "<string>",
"institution": "<string>",
"is_private": true,
"confidential": true
}
}
],
"totalScanned": 123,
"uploadCount": 123,
"tookMs": 123
}Search file content via RAG/KAG and return scored snippets
Scored-chunk content search across the userβs eligible IP Vault
(personal + current institution + account-shared siblings). Returns
~200-char snippets centered on matched tokens, with a relevance score
per chunk and a rag | kag | fused source label. Confidential
institution files surface a π placeholder snippet rather than raw
chunk text. selectedUploadIds is optional β when provided, it
intersects with the userβs scope; foreign or malformed ids are
silently dropped (never 403). Rate-limited per user (default 20/min).
curl --request POST \
--url https://pria.praxislxp.com/api/user/files/search-content \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"query": "quantum gravity",
"selectedUploadIds": [
"<string>"
],
"minScore": 0.1,
"limit": 50
}
'{
"success": true,
"query": "quantum gravity",
"results": [
{
"uploadId": "<string>",
"chunkId": "<string>",
"chunkIndex": 123,
"snippet": "<string>",
"score": 123,
"upload": {
"_id": "<string>",
"originalname": "<string>",
"filesize": 123,
"mimetype": "<string>",
"file_title": "<string>",
"institution": "<string>",
"is_private": true,
"confidential": true
}
}
],
"totalScanned": 123,
"uploadCount": 123,
"tookMs": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT token passed in x-access-token header
Body
The search query string.
500"quantum gravity"
Optional whitelist of upload ids. Intersected with the user's eligible scope; foreign / malformed ids are silently dropped.
5000Minimum dense (vector) score floor. Ignored for KAG-fused results.
0 <= x <= 1Maximum number of results to return.
1 <= x <= 100Response
Content-search results
true
"quantum gravity"
Show child attributes
Show child attributes
Number of raw results returned by searchRag before the minScore filter.
Number of distinct uploads in the user's searchable scope.
Server-side elapsed time in milliseconds.
Was this page helpful?