Add intelligent document processing to your Mongoose schemas. Auto-summarization, semantic search, and function calling with OpenAI, Anthropic, and local LLMs.
Real examples of intelligent document processing with mongoose-ai
Automatically generate summaries when documents are saved to MongoDB
AI automatically classifies content and fills document fields
Search documents by meaning with vector embeddings and MongoDB Atlas Vector Search
Use local Ollama models for complete privacy and zero API costs
import { aiPlugin } from "@jmndao/mongoose-ai";
const articleSchema = new mongoose.Schema({
title: String,
content: String,
author: String
});
// Add AI summarization
articleSchema.plugin(aiPlugin, {
ai: {
model: "summary",
provider: "openai", // or "anthropic"
field: "aiSummary",
credentials: { apiKey: process.env.OPENAI_API_KEY }
}
});
const Article = mongoose.model("Article", articleSchema);
// AI summary generated automatically on save
const article = new Article({
title: "The Future of AI",
content: "Artificial intelligence is transforming..."
});
await article.save();
console.log(article.aiSummary.summary); // Auto-generated summary
Everything you need to add intelligent document processing to your MongoDB applications
Automatically generate intelligent summaries when documents are saved. Works with any text content in your schemas.
AI automatically fills fields, classifies content, scores documents, and manages tags based on your business logic.
Search documents by meaning with vector embeddings. Includes MongoDB Atlas Vector Search support for production scale.
Switch between OpenAI, Anthropic, and local Ollama models. Same API, different capabilities and cost structures.
Built-in retry logic, error handling, rate limiting, and cost estimation. Scales from development to enterprise.
Full TypeScript support with intelligent autocomplete, type safety, and comprehensive error handling.
See how mongoose-ai powers intelligent document processing across industries
Automatically analyze product descriptions, categorize items, extract key features, and generate SEO-friendly summaries.
Product catalogs, inventory management, search optimization
Process articles, blog posts, and documents with automatic summarization, topic extraction, and content classification.
CMS platforms, news sites, knowledge bases, documentation
Analyze support tickets, customer reviews, and feedback with sentiment analysis and priority classification.
Support systems, review platforms, feedback analysis
Process resumes, job descriptions, and employee feedback with intelligent matching and classification.
ATS systems, HR platforms, talent management
Transform business documents, reports, and communications into structured insights and actionable data.
Business reports, market research, competitive analysis
Process legal documents, contracts, and compliance materials with privacy-first local processing using Ollama.
Legal tech, compliance management, document review
Start with any MongoDB schema and add intelligent processing in minutes
npm install @jmndao/mongoose-ai
// Add AI to any schema in 3 lines
Join organizations building the next generation of intelligent applications
npm install @jmndao/mongoose-ai