pgvector/pgvector-dotnet
pgvector support for .NET (C#, F#, and Visual Basic)
What it solves
pgvector-dotnet adds support for the pgvector PostgreSQL extension to .NET applications, allowing developers to store and query vector embeddings directly from C#, F#, and Visual Basic.
How it works
It provides .NET data types for standard vectors, half vectors, and sparse vectors, integrating directly with popular database libraries like Npgsql, Dapper, and Entity Framework Core to handle insertions, similarity searches, and approximate index creation.
Who it’s for
It is designed for .NET developers building AI applications, recommendation systems, or search features that rely on PostgreSQL for vector storage.
Highlights
- Supports C#, F#, and Visual Basic.
- Integrates with Npgsql, Dapper, Entity Framework Core, and Npgsql.FSharp.
- Supports vector, half-vector, and sparse vector data types.
- Enables nearest-neighbor queries and distance calculations using L2 distance, inner product, and cosine distance.
- Supports approximate indexing methods like HNSW and IVFFlat.
Related
- Project
pgvector/pgvector-goA Go client library providing support for the pgvector PostgreSQL extension to enable vector similarity search and storage in Go applications.
- Project
pgvector/pgvector-pythonPython support for the pgvector PostgreSQL extension, enabling vector storage and similarity search across multiple popular Python ORMs and database drivers.
- Project
pgvector/pgvector-nodepgvector-node is a library that provides support for the pgvector PostgreSQL extension in Node.js, Deno, and Bun, allowing developers to store and perform similarity searches on vector embeddings using their preferred database drivers and ORMs.
- Project
pgvector/pgvectorpgvector is an open-source extension that adds vector similarity search to Postgres, letting you store and query vectors (embeddings) alongside your regular data with support for exact and approximate nearest-neighbor search, multiple distance metrics, and several vector types.
- Project
ChuckHend/pg_vectorizepg_vectorize adds automatic text‑to‑embedding conversion and hybrid vector/full‑text search to PostgreSQL. It can run as a standalone HTTP service (ideal for managed DBs) or as a Postgres extension (SQL‑only). Using `pgvector` for similarity and `pgmq` for background jobs, it watches a source table, creates embeddings with Sentence‑Transformers models, and exposes simple REST or SQL APIs for RAG‑style queries.