RAG (Files & Search)
RAG (Files & Search)
RAG (Retrieval-Augmented Generation)
Upload documents, generate embeddings, and query them semantically — all through client.RAG.
Quick upload
The UploadFile convenience method handles both the init call and the PUT to the signed URL in one step:
Two-step upload
Use InitUpload when you want to control the PUT yourself (e.g. streaming large files):
Trigger embedding
Poll until ready
Search
Search options
List files
RAG chat
Combine search results with a chat completion: