FluxIndex.Storage.PostgreSQL
0.2.10
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FluxIndex.Storage.PostgreSQL --version 0.2.10
NuGet\Install-Package FluxIndex.Storage.PostgreSQL -Version 0.2.10
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FluxIndex.Storage.PostgreSQL" Version="0.2.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluxIndex.Storage.PostgreSQL" Version="0.2.10" />
<PackageReference Include="FluxIndex.Storage.PostgreSQL" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FluxIndex.Storage.PostgreSQL --version 0.2.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluxIndex.Storage.PostgreSQL, 0.2.10"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FluxIndex.Storage.PostgreSQL@0.2.10
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FluxIndex.Storage.PostgreSQL&version=0.2.10
#tool nuget:?package=FluxIndex.Storage.PostgreSQL&version=0.2.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluxIndex
.NET 9.0 RAG library for building retrieval-augmented generation systems with vector and hybrid search.
Overview
FluxIndex provides document indexing and semantic retrieval for .NET applications. It combines vector embeddings with keyword search using clean architecture principles and modular design.
Features
- Vector Search - Semantic similarity using embeddings (SQLite-vec, pgvector)
- Keyword Search - BM25 algorithm for exact term matching
- Hybrid Search - Combines vector + keyword with Reciprocal Rank Fusion
- Adaptive Search - Automatic strategy selection based on query complexity
- Embedding Cache - In-memory cache for repeated queries (100% improvement)
- Storage Options - SQLite (dev), PostgreSQL (production)
- AI Agnostic - Works with OpenAI, Azure OpenAI, or custom services
- Document Processing - FileFlux integration for PDF/DOCX/TXT
- Web Crawling - WebFlux integration for web content extraction
- Semantic Caching - Redis-based similarity caching
- Clean Architecture - Modular DI-based design
Installation
# Minimal setup (local development)
dotnet add package FluxIndex.SDK
dotnet add package FluxIndex.Storage.SQLite
# Production setup
dotnet add package FluxIndex.SDK
dotnet add package FluxIndex.AI.OpenAI
dotnet add package FluxIndex.Storage.PostgreSQL
dotnet add package FluxIndex.Cache.Redis
# Document processing (optional)
dotnet add package FluxIndex.Extensions.FileFlux
dotnet add package FluxIndex.Extensions.WebFlux
Quick Start
using FluxIndex.SDK;
// Setup with SQLite and OpenAI
var context = FluxIndexContext.CreateBuilder()
.UseSQLite("fluxindex.db")
.UseOpenAI("your-api-key", "text-embedding-3-small")
.Build();
// Index documents
await context.Indexer.IndexDocumentAsync(
content: "FluxIndex is a .NET RAG library for semantic search.",
documentId: "doc-001"
);
// Search with adaptive strategy
var results = await context.Retriever.SearchAsync(
query: "RAG library for .NET",
maxResults: 5
);
foreach (var result in results)
{
Console.WriteLine($"Score: {result.Score:F2}");
Console.WriteLine($"Content: {result.DocumentChunk.Content}");
}
Performance
Based on benchmarks with .NET 9.0 on Intel i7-1360P:
| Operation | Dataset | Performance | Notes |
|---|---|---|---|
| Batch Indexing | 1,000 chunks | 24ms | 8-thread parallelism |
| Batch Indexing | 10,000 chunks | 188ms | 3.5 KB/chunk |
| Vector Search | 1,000 chunks | 0.6-0.7ms | In-memory embeddings |
| Embedding Cache Hit | Repeated query | 100% faster | Eliminates API calls |
| Hybrid Search | 100 chunks | 383ms avg | With OpenAI API |
| Semantic Cache | Similar query | <5ms | 95% similarity threshold |
Optimization Features:
- In-memory embedding cache for repeated queries
- Semantic caching with Redis for similar queries
- Optimal parallelism: 8 threads for batch operations
- Expected 30% latency reduction with realistic cache hit rates
Advanced Usage
See Tutorial for detailed examples:
- Hybrid Search - Combine vector and keyword search with RRF
- Adaptive Search - Automatic strategy selection based on query complexity
- Embedding Cache - In-memory cache for repeated queries
- Semantic Caching - Redis-based similarity caching for related queries
- Document Processing - FileFlux integration for PDF/DOCX/TXT
- Web Crawling - WebFlux integration for web content extraction
- Batch Operations - Efficient bulk indexing with parallelism
Documentation
- Getting Started - Setup and configuration
- Tutorial - Comprehensive examples
- Architecture - Design principles
- Cheat Sheet - Quick reference
Examples
- RealWorldDemo - OpenAI + SQLite integration
- FileFluxSample - PDF/DOCX processing
- WebFluxSample - Web crawling
Requirements
- .NET 9.0 or later
- SQLite or PostgreSQL
- OpenAI API key (optional)
License
MIT License - see LICENSE file.
Contributing
See development roadmap for planned features.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- FluxIndex.Core (>= 0.2.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.10)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
- Pgvector.EntityFrameworkCore (>= 0.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0 | 19 | 12/16/2025 |
| 0.4.1 | 22 | 12/16/2025 |
| 0.4.0 | 38 | 12/15/2025 |
| 0.3.3 | 41 | 12/15/2025 |
| 0.3.2 | 37 | 12/15/2025 |
| 0.2.14 | 190 | 11/2/2025 |
| 0.2.12 | 200 | 10/27/2025 |
| 0.2.11 | 182 | 10/27/2025 |
| 0.2.10 | 170 | 10/21/2025 |
| 0.2.9 | 157 | 10/12/2025 |
| 0.2.8 | 172 | 10/2/2025 |
| 0.2.7 | 169 | 9/29/2025 |
| 0.2.5 | 151 | 9/26/2025 |
| 0.2.4 | 173 | 9/25/2025 |
| 0.2.3 | 177 | 9/23/2025 |
| 0.2.2 | 183 | 9/22/2025 |
| 0.1.4 | 256 | 9/15/2025 |
| 0.1.3 | 244 | 9/15/2025 |
| 0.1.2 | 248 | 9/15/2025 |