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:
Trigger embedding
Poll until ready
Search
Search options
List files
RAG chat
Combine search results with a chat completion: