Samples
Basic chat
Chat with documents (RAG)
Use tools
Arguments
Returns
JSONB: Complete API response with message, citations, and metadata.
Related functions
cohere_rerank(): rerank documents for RAGanthropic_generate(): alternative with Claude models