Rayneforge.Stratus.RemoteIndexer 1.0.1

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

Rayneforge.Stratus.RemoteIndexer

A .NET library for semantic code indexing with hybrid search capabilities, supporting OpenAI and Azure OpenAI embeddings.

Features

  • Text Extraction: Intelligent file classification and text extraction with configurable size limits
  • Smart Chunking: Token-aware chunking with overlap policies for optimal context preservation
  • Embeddings: Support for OpenAI and Azure OpenAI embedding models with caching and batching
  • Hybrid Search: Combined vector and lexical (FTS) search with configurable scoring
  • Draft/Commit Workflow: Transactional indexing with rollback support via SQLite
  • Clustering: K-means clustering with AI-powered labeling for semantic grouping

Installation

dotnet add package Rayneforge.Stratus.RemoteIndexer

Quick Start

Configuration

{
  "Indexer": {
    "WorkspaceDirectory": ".workspace",
    "Sqlite": {
      "ConnectionString": "Data Source=indexer.db"
    },
    "Indexing": {
      "MaxFileBytes": 1000000,
      "Chunking": {
        "MaxCharsPerChunk": 2000,
        "OverlapChars": 200
      }
    },
    "AI": {
      "Profile": "Lite",
      "Provider": "OpenAI",
      "ApiKey": "your-api-key"
    }
  }
}

Basic Usage

using Rayneforge.Stratus.RemoteIndexer.Storage;
using Rayneforge.Stratus.RemoteIndexer.Search;
using Rayneforge.Stratus.RemoteIndexer.Options;

// Configure services
services.Configure<IndexerOptions>(configuration.GetSection("Indexer"));
services.AddSingleton<IIndexStore, SqliteIndexStore>();
services.AddSingleton<HybridSearch>();

// Index files
var store = serviceProvider.GetRequiredService<IIndexStore>();
await store.UpsertFileAsync(new IndexRecord
{
    RelativePath = "src/Program.cs",
    Content = fileContent,
    Chunks = chunks,
    State = "draft"
});

// Commit changes
var commitId = await store.CommitAllAsync();

// Search
var search = serviceProvider.GetRequiredService<HybridSearch>();
var results = await search.SearchAsync("authentication logic", 
    new HybridSearchOptions { MaxResults = 10 });

Architecture

The library is deterministic by design - the same file always produces the same chunks, embeddings, and hashes. This ensures consistency between local and remote indexing operations.

Core Components

  • Extraction: File type detection, text extraction with size limits
  • Chunking: Token-aware chunkers with overlap for context preservation
  • Embeddings: OpenAI/Azure OpenAI clients with batching and caching
  • Storage: SQLite-backed persistence with draft/commit/rollback support
  • Search: Hybrid scoring combining vector similarity and lexical matching
  • Clustering: K-means with LLM-powered cluster labeling

AI Profiles

The library supports three AI profiles for different use cases:

  • Lite: Fast, cost-effective (small embedding models, basic LLMs)
  • Basic: Balanced performance and cost (standard models)
  • Premium: Maximum quality (largest models, advanced features)

Storage Model

The SQLite schema supports:

  • Draft and committed states for all records
  • Commit log with rollback capabilities
  • Vector storage for semantic search
  • Full-text search indexes for hybrid queries

Security

  • All file paths are validated against the workspace root
  • File and chunk sizes are capped to prevent resource exhaustion
  • SQL operations use parameterized queries
  • AI credentials are never logged or exposed

Testing

The library includes comprehensive tests:

  • Unit tests for chunking, extraction, and scoring
  • Integration tests with SQLite harness
  • Deterministic seeding for reproducible tests

License

See the repository root for license information.

Contributing

Contributions are welcome! Please see the main repository for contribution guidelines.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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

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
1.0.1 162 12/21/2025
1.0.0 158 12/21/2025