![]() |
VOOZH | about |
dotnet add package SmartRAG --version 4.0.1
NuGet\Install-Package SmartRAG -Version 4.0.1
<PackageReference Include="SmartRAG" Version="4.0.1" />
<PackageVersion Include="SmartRAG" Version="4.0.1" />Directory.Packages.props
<PackageReference Include="SmartRAG" />Project file
paket add SmartRAG --version 4.0.1
#r "nuget: SmartRAG, 4.0.1"
#:package SmartRAG@4.0.1
#addin nuget:?package=SmartRAG&version=4.0.1Install as a Cake Addin
#tool nuget:?package=SmartRAG&version=4.0.1Install as a Cake Tool
Multi-Database RAG Library for .NET
Ask questions about your data in natural language
SmartRAG is a comprehensive Retrieval-Augmented Generation (RAG) library that enables you to query multiple databases, documents, images, and audio files using natural language. Targets .NET 6 and includes a built-in Dashboard for document management and chat. Transform your data into intelligent conversations with a single, unified API.
dotnet add package SmartRAG
// For Web API applications
builder.Services.AddSmartRag(builder.Configuration, options =>
{
options.AIProvider = AIProvider.OpenAI;
options.StorageProvider = StorageProvider.InMemory;
});
// For Console applications
var serviceProvider = services.UseSmartRag(
configuration,
aiProvider: AIProvider.OpenAI,
storageProvider: StorageProvider.InMemory
);
Add database connections to your appsettings.json:
{
"SmartRAG": {
"DatabaseConnections": [
{
"Name": "Sales",
"ConnectionString": "Server=localhost;Database=Sales;...",
"DatabaseType": "SqlServer"
}
]
}
}
// Upload document
var document = await documentService.UploadDocumentAsync(
fileStream, fileName, contentType, "user-123"
);
// Unified query across databases, documents, images, and audio
var response = await searchService.QueryIntelligenceAsync(
"Show me all customers who made purchases over $10,000 in the last quarter, their payment history, and any complaints or feedback they provided"
);
// β AI automatically analyzes query intent and routes intelligently:
// - High confidence + database queries β Searches databases only
// - High confidence + document queries β Searches documents only
// - Medium confidence β Searches both databases and documents, merges results
// β Queries SQL Server (orders), MySQL (payments), PostgreSQL (customer data)
// β Analyzes uploaded PDF contracts, OCR-scanned invoices, and transcribed call recordings
// β Provides unified answer combining all sources
π― Unified Query Intelligence - Single query searches across databases, documents, images, and audio automatically
π§ Smart Hybrid Routing - AI analyzes query intent and automatically determines optimal search strategy
ποΈ Multi-Database RAG - Query multiple databases simultaneously with natural language
π Multi-Modal Intelligence - PDF, Word, Excel, Images (OCR), Audio (Speech-to-Text), and more
π MCP Client Integration - Connect to external MCP servers and extend capabilities with external tools
π Automatic File Watching - Monitor folders and automatically index new documents without manual uploads
π 100% Local Processing - GDPR, KVKK, HIPAA compliant with Ollama and Whisper.net
π₯οΈ Built-in Dashboard - Browser-based document management and chat UI at /smartrag
π Production Ready - Enterprise-grade, thread-safe, high performance
Databases: SQL Server, MySQL, PostgreSQL, SQLite
Documents: PDF, Word, Excel, PowerPoint, Images, Audio
AI Models: OpenAI, Anthropic, Gemini, Azure OpenAI, Ollama (local), LM Studio
Vector Stores: Qdrant, Redis, InMemory
Conversation Storage: Redis, SQLite, FileSystem, InMemory (independent from document storage)
External Integrations: MCP (Model Context Protocol) servers for extended tool capabilities
File Monitoring: Automatic folder watching with real-time document indexing
var answer = await searchService.QueryIntelligenceAsync(
"Which customers have overdue payments and what's their total outstanding balance?"
);
// β Queries Customer DB, Payment DB, Account DB and combines results
// β Provides comprehensive financial risk assessment for credit decisions
var answer = await searchService.QueryIntelligenceAsync(
"Show me all patients with diabetes who haven't had their HbA1c checked in 6 months"
);
// β Combines Patient DB, Lab Results DB, Appointment DB and identifies at-risk patients
// β Ensures preventive care compliance and reduces complications
var answer = await searchService.QueryIntelligenceAsync(
"Which products are running low on stock and which suppliers can restock them fastest?"
);
// β Analyzes Inventory DB, Supplier DB, Order History DB and provides restocking recommendations
// β Prevents stockouts and optimizes supply chain efficiency
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by BarΔ±Ε Yerlikaya
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1 | 157 | 3/9/2026 |
| 4.0.0 | 127 | 3/2/2026 |
| 3.9.0 | 207 | 2/5/2026 |
| 3.8.1 | 227 | 1/28/2026 |
| 3.8.0 | 264 | 1/26/2026 |
| 3.7.0 | 215 | 1/19/2026 |
| 3.6.0 | 267 | 12/30/2025 |
| 3.5.0 | 267 | 12/26/2025 |
| 3.4.0 | 283 | 12/11/2025 |
| 3.3.0 | 828 | 12/1/2025 |
| 3.2.0 | 438 | 11/27/2025 |
| 3.1.0 | 391 | 11/13/2025 |
| 3.0.3 | 480 | 11/6/2025 |
| 3.0.2 | 366 | 10/23/2025 |
| 3.0.1 | 438 | 10/22/2025 |
| 3.0.0 | 422 | 10/22/2025 |
| 2.3.1 | 286 | 10/8/2025 |
| 2.3.0 | 415 | 9/16/2025 |
| 2.2.0 | 445 | 9/15/2025 |
| 2.1.0 | 207 | 9/5/2025 |
Release 4.0.1: LM Studio embeddings and SQLite schema fixes (PATCH - 2026-03-09)
FIXED: CustomProvider embedding payload compatibility with OpenAI-style servers and more flexible batch embedding response parsing for Ollama/OpenAI hybrid JSON formats.
FIXED: SQLite schema analysis and parsing now resolve database files relative to the solution root instead of examples/SmartRAG.Demo, preventing accidental creation of empty databases.