RAG helpers
Upload and wait helpers wrap POST /rag/documents. Pass document_ids in rag_options when use_rag is true.
python
doc = ts.rag_ensure_document("./handbook.pdf")doc_id = str(doc["document_id"])
out = ts.ask("What is the refund policy?", provider="openai", model="gpt-4o", use_rag=True, rag_options={"document_ids": [doc_id]})REST details: RAG documents. Tutorial: RAG upload.
