AI Platform Overview

LLM providers, RAG, agents, and MCP.

1 min readEdit this page

What is included

  • Provider abstraction — OpenAI, Anthropic, Gemini, Ollama
  • Streaming — token-by-token SSE
  • Embeddings — text-to-vector
  • Vector store — semantic search
  • RAG pipeline — index and query documents
  • Agents — ReAct reasoning with tools
  • MCP client — external tool integration

Quick example

import { OllamaProvider } from '@restjs/ai'
 
const ai = new OllamaProvider({ model: 'llama3.2' })
 
const res = await ai.complete({
  messages: [{ role: 'user', content: 'What is REstJS?' }]
})
 
console.log(res.content)

Switch providers with one env variable — no code changes.

Tip

Start with Providers, then explore RAG and Agents.