Process a document for RAG tuning
POST/ragtune
Processes a document by extracting its content and generating embeddings to be used for RAG tuning. Supported file types: PDF, DOC, DOCX, TXT, CSV, XLS, XLSX.
Request
- application/json
Body
required
collection string
url string
URL of the document to process. Supported file types: PDF, DOC, DOCX, TXT, CSV, XLS, XLSX
metatag string
Optional metadata tag to associate with the document
Responses
- 200
- 400
- 500
Document processed and added to the specified collection
- application/json
- Schema
- Example (from schema)
Schema
message string
result object
property name* any
{
"message": "Document added to rag_tuning named: my-ragtune-collection",
"result": {}
}
Collection or URL missing from the request
Internal server error
Loading...