Production code
The code we ship to you, written by our engineers
Integration with IgnitionRAG. On SaaS, AI and storage are platform-managed, credits included, no LLM key to provide. On an Agence, ESN or Dedicated license, BYOK is available, with no margin on tokens.
import { IgnitionAI } from '@ignitionai/sdk'
const client = new IgnitionAI({
apiKey: process.env.IGNITION_API_KEY, // server-side IGNITION_API_KEY, never exposed to the browser
})
const response = await client.chat.send({
collectionId: 'coll_xxxx', // collection ID on IgnitionRAG
query: 'What is our SLA?', // question sent to the RAG system
})The ign_ key is read server-side from IGNITION_API_KEY, never exposed to the browser.