FluxIndex.SDK 0.2.10

dotnet add package FluxIndex.SDK --version 0.2.10
                    
NuGet\Install-Package FluxIndex.SDK -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.SDK" Version="0.2.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluxIndex.SDK" Version="0.2.10" />
                    
Directory.Packages.props
<PackageReference Include="FluxIndex.SDK" />
                    
Project file
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.SDK --version 0.2.10
                    
#r "nuget: FluxIndex.SDK, 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.SDK@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.SDK&version=0.2.10
                    
Install as a Cake Addin
#tool nuget:?package=FluxIndex.SDK&version=0.2.10
                    
Install as a Cake Tool

FluxIndex

CI/CD NuGet License

.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

Examples

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 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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on FluxIndex.SDK:

Package Downloads
FluxIndex.Extensions.FileFlux

FileFlux integration extensions for FluxIndex

FluxIndex.Extensions.WebFlux

FluxIndex.Extensions.WebFlux - Web content processing integration for FluxIndex using WebFlux library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.10 151 10/21/2025
0.2.9 171 10/12/2025
0.2.8 226 10/2/2025
0.2.7 179 9/29/2025
0.2.5 153 9/26/2025
0.2.4 190 9/25/2025
0.2.3 179 9/23/2025
0.2.2 195 9/22/2025
0.1.4 247 9/15/2025
0.1.3 281 9/15/2025