Ragtune

Process a document for RAG tuning

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.

post/ragtune

Request

  • Base URL: https://apipie.ai
  • URL: https://apipie.ai/ragtune
  • Auth: API key in header Authorization

Request body

collection_namestring
urlstring

URL of the document to process. Supported file types: PDF, DOC, DOCX, TXT, CSV, XLS, XLSX

metatagstring

Optional metadata tag to associate with the document

vector_provider'pinecone' | 'qdrant'

Vector provider to use to store the collection

Example request

{
  "collection_name": "my-ragtune-collection",
  "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
  "metatag": "important-document"
}

Response

Document processed and added to the specified collection

messagestring
resultobject

Example response

{
  "message": "Document added to rag_tuning named: my-ragtune-collection"
}

Changes

No recorded changes to this operation across all 1 revision of this API.