A .NET library for semantic code indexing with hybrid search capabilities, supporting OpenAI and Azure OpenAI embeddings. Provides text extraction, smart chunking, embeddings, and transactional storage with draft/commit/rollback workflows.
License
—
Deps
7
Install Size
—
Vulns
✓ 0
Published
Dec 21, 2025
$ dotnet add package Rayneforge.Stratus.RemoteIndexerA .NET library for semantic code indexing with hybrid search capabilities, supporting OpenAI and Azure OpenAI embeddings.
dotnet add package Rayneforge.Stratus.RemoteIndexer
{
"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"
}
}
}
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 });
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.
The library supports three AI profiles for different use cases:
The SQLite schema supports:
The library includes comprehensive tests:
See the repository root for license information.
Contributions are welcome! Please see the main repository for contribution guidelines.