file_upload
Upload UTF-8 text documents to index for RAG search in a specified namespace, enabling retrieval-augmented generation over your content.
Instructions
Upload a UTF-8 text document for RAG indexing into a namespace. PrefLights rag_index capacity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"filename": "<filename>",
"text": "<text>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| filename | Yes | ||
| namespace | Yes | ||
| contentType | No |