-
Notifications
You must be signed in to change notification settings - Fork 0
RAG
Benmebrouk edited this page Apr 12, 2026
·
1 revision
let r = client.rag_upload("Document content...", Some("policy.txt".into())).await?;let r = client.rag_query("What is the refund policy?", None).await?;
println!("{}", r.answer);let answer = client.rag_ask("What are the terms?", "Payment due in 30 days...").await?;let req = ChatRequest::quick("auto", "Summarize");
let mut rx = client.chat_stream(req).await?;
while let Some(chunk) = rx.recv().await {
print!("{}", chunk.unwrap_or_default());
}