Not sure what Nuxt AI Kit is? Check out the introduction.
npx nuxt module add ai-kitnpm i nuxt-ai-kitYou will need to manually add the module to your Nuxt config.
export default defineNuxtConfig({
modules: [
'nuxt-ai-kit',
],
})
yarn add nuxt-ai-kitYou will need to manually add the module to your Nuxt config.
export default defineNuxtConfig({
modules: [
'nuxt-ai-kit',
],
})
pnpm i nuxt-ai-kitYou will need to manually add the module to your Nuxt config.
export default defineNuxtConfig({
modules: [
'nuxt-ai-kit',
],
})
bun i nuxt-ai-kitYou will need to manually add the module to your Nuxt config.
export default defineNuxtConfig({
modules: [
'nuxt-ai-kit',
],
})
Nuxt AI Kit requires a Nuxt SEO Pro license.
NUXT_SEO_PRO_KEY=your-license-key-hereSign in to see your license key.
Uses transformers.js with @huggingface/transformers. No setup required—model downloads automatically on first build.
pnpm add @built-in-ai/transformers-js
pnpm add openai
export default defineNuxtConfig({
aiKit: {
embeddings: {
model: 'text-embedding-3-small',
buildProvider: {
preset: 'openai',
apiKey: process.env.OPENAI_API_KEY
}
}
}
})
No package needed. Uses HTTP API to your local Ollama server.
export default defineNuxtConfig({
aiKit: {
embeddings: {
model: 'nomic-embed-text',
buildProvider: {
preset: 'ollama'
}
}
}
})
Build your site:
pnpm generate
Check the vector database was created:
ls -la .data/ai-kit/
# embeddings.db should exist
Start the preview server and test the API:
pnpm preview
curl -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{"query": "getting started", "limit": 5}'
You should get a JSON response with search results.