La documentation est disponible en anglais.

Documentation / Python SDK deep dive

RAG helpers

Upload and wait helpers wrap POST /rag/documents. Requires an active RAG governance policy; pass document_ids in rag_options.

doc = ts.rag_ensure_document("./handbook.pdf")
doc_id = str(doc["document_id"])
# Ensure RAG policy is active (see sdk/python/governance)
out = ts.ask(
    "What is the refund policy?",
    provider="openai",
    model="gpt-4o",
    rag_options={"document_ids": [doc_id]},
)

REST details: RAG documents. Tutorial: RAG upload.