searchragdata-sourcessemantic-search

Airweave is an open-source platform that makes any app searchable for your agent. Sync and search across 35+ data sources (Notion, Slack, Google Drive, databases, and more) with semantic search. Add unified search across all your connected data to your AI applications in just a few lines of code.

Installation

pnpm install @airweave/vercel-ai-sdk
# Add to your .env file
AIRWEAVE_API_KEY=your_api_key_here

Usage

import { generateText, gateway, stepCountIs } from 'ai';
import { airweaveSearch } from '@airweave/vercel-ai-sdk';
const { text } = await generateText({
model: gateway('anthropic/claude-sonnet-4.5'),
prompt: 'What were the key decisions from last week?',
tools: {
search: airweaveSearch({
defaultCollection: 'my-knowledge-base',
}),
},
stopWhen: stepCountIs(3),
});
console.log(text);