Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

RAG assistant (advanced)

Index documents into the knowledge base, run semantic search, and answer questions grounded in your content.

What this example does

  1. Connect over HTTP

  2. addDocument() β€” seed help-center articles

  3. search() β€” find relevant chunks for a user question

  4. sendAI() with useKnowledgeBase: true β€” generate an answer with RAG

Prerequisites

  • AI enabled on your plan

  • Knowledge-base quota available (knowledgeBaseMaxWords in plan limits)

Pipeline

addDocument()  β†’  indexed vectors
                      ↓
search(query)  β†’  top-k chunks
                      ↓
sendAI({ useKnowledgeBase: true })  β†’  grounded answer

Language guides

Last updated