Whatever message this page gives is out now! Go check it out!
chat() when conversational context is required.ragService.ask(message)Parameter | Type | Required | Description |
|---|---|---|---|
message | String | Required | The question or prompt to send to the AI model. |
Key | Description |
|---|---|
answer | String. The AI-generated answer. |
sources | Array of source metadata Structs. Each Struct includes fileName and score. |
durationMs | Numeric. Query round-trip time in milliseconds. |
response = ragBot.ask("How do I configure SSL certificates?");
writeOutput(response.answer);
// Inspect source documents
for (src in response.sources) {
writeOutput("Source: #src.fileName# (score: #src.score#)");
}