Sylin.Koan.Data.Vector.Connector.SqliteVec 0.21.1

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

Sylin.Koan.Data.Vector.Connector.SqliteVec

Durable, exact vector search in one local SQLite file, with no vector server or provider ceremony.

  • Target framework: net10.0
  • Native engine: sqlite-vec v0.1.9
  • License: Apache-2.0

Smallest meaningful result

builder.Services.AddKoan(koan =>
    koan.Data.Source("Semantic").Vector<Article>(space => space
        .Name("articles")
        .Dimensions(1536)
        .Metric(VectorMetric.Cosine)
        .Visibility(VectorVisibility.Session)));

await Vector<Article>.Save(article.Id, embedding, new { article.Category }, ct);

var nearest = await Vector<Article>.Search(
    embedding,
    query => query.Top(12).AtLeast(.82),
    ct);

The package discovers itself through AddKoan. By default it pairs with the selected SQLite record source; configure Koan:Data:Sources:<name>:SqliteVec:ConnectionString when vectors belong in a separate file.

Guarantees

  • exact native cosine or Euclidean kNN with finite [0,1] similarity and stable identity ties;
  • atomic complete-point upsert and atomic ordered batches;
  • immediate Session visibility and file-backed restart durability;
  • positional get-many, truthful delete outcomes, and lossless neutral metadata;
  • source, partition, and Koan hard-scope isolation;
  • ReadOnly and External policy enforcement before file or shape mutation;
  • pinned native RID payloads verified by SHA-256 and vec_version() before use.

SqliteVec deliberately declines dot product, arbitrary metadata Where(...), hybrid search, Eventual visibility, continuations, streaming export, and multiple vectors per Entity. Unsupported intent fails with a corrective exception; the adapter never substitutes a managed scan or a weaker result.

Supported native platforms

  • Windows x64
  • Linux x64
  • Linux arm64

An unsupported RID fails before a database operation. Native library paths and extension-loading controls are not application configuration.

Bounded options

Koan:Data:SqliteVec:MaxMetadataBytesPerPoint and MaxSearchCandidates bound per-point metadata and stable-tie expansion. Dimensions, metric, visibility, placement policy, and space name remain shared Koan decisions.

References

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
0.21.1 37 7/30/2026
0.20.2 95 7/22/2026
0.20.1 117 7/22/2026