pgvector-gleam
Gleam language client and examples for pgvector, allowing Gleam applications to perform vector similarity search using PostgreSQL.
About this tool
pgvector-gleam
- Website/Source: https://github.com/pgvector/pgvector-gleam
- Category: SDKs & Libraries
- Brand: pgvector
- Language/Runtime: Gleam
- Use case: Vector similarity search in PostgreSQL from Gleam applications
Description
pgvector-gleam is a Gleam-language client and example set for using the pgvector PostgreSQL extension. It demonstrates how to store and query vector embeddings in PostgreSQL from Gleam, enabling vector similarity search and related operations. The library provides examples that work with the pog Gleam PostgreSQL library.
Features
-
pgvector integration for Gleam
- Example code for interacting with the pgvector PostgreSQL extension from Gleam.
- Shows how to define and work with vector columns in PostgreSQL tables.
-
Supports
pogdatabase library- Works with the
pogGleam PostgreSQL client. - Provides a full example file (
src/pgvector.gleam) demonstrating usage withpog.
- Works with the
-
Database setup guidance
- Steps to enable the pgvector extension in PostgreSQL.
- Example schema definitions to create tables with vector columns.
-
Vector operations workflow
- Examples for inserting vectors into PostgreSQL.
- Queries to retrieve nearest neighbors using pgvector’s similarity search.
- Instructions for adding an approximate index to accelerate similarity search.
-
Distance and similarity operators
- Usage of
vector_ip_opsfor inner product similarity. - Usage of
vector_cosine_opsfor cosine distance / similarity.
- Usage of
-
Build & CI ready
- GitHub Actions workflow for building and testing the project.
- Configured with
gleam.tomland standard project structure undersrc/.
-
Open source project structure
- Includes license file (
LICENSE.txt). - Contribution guidelines encouraged via the repository (issues/PRs).
- Includes license file (
Pricing
- Not applicable – this is an open-source GitHub repository. No pricing information is provided.
Loading more......
Information
Categories
Tags
Similar Products
6 result(s)COBOL bindings and examples for pgvector, letting legacy COBOL systems interact with PostgreSQL as a vector database.
Crystal language client for pgvector, providing idiomatic Crystal access to vector operations in PostgreSQL.
.NET (C#, F#, Visual Basic) library for pgvector that exposes vector storage and similarity queries on PostgreSQL to .NET applications.
Elixir wrapper and examples for pgvector, integrating PostgreSQL-based vector search into Elixir ecosystems like Phoenix.
Erlang client and examples for pgvector, providing tools to run vector operations against PostgreSQL from Erlang systems.
Haskell bindings and examples for pgvector, enabling Haskell applications to treat PostgreSQL as a vector database.