• Home
  • Categories
  • Tags
  • Pricing
  • Submit
    Decorative pattern
    1. Home
    2. Sdks & Libraries
    3. pgvector-erlang

    pgvector-erlang

    Erlang client and examples for pgvector, providing tools to run vector operations against PostgreSQL from Erlang systems.

    🌐Visit Website

    About this tool

    pgvector-erlang

    Category: SDKs & Libraries
    Brand: pgvector
    Repository: https://github.com/pgvector/pgvector-erlang

    Erlang client examples for the pgvector PostgreSQL extension, demonstrating how to run vector operations from Erlang systems using epgsql.


    Features

    • Erlang examples for pgvector

      • Shows how to integrate the pgvector extension with Erlang applications.
      • Focused around the epgsql PostgreSQL driver.
    • epgsql support

      • Uses epgsql:equery/3 for executing SQL commands from Erlang.
      • Compatible with databases where the pgvector extension is installed.
    • Extension setup

      • Example for enabling the pgvector extension:
        • CREATE EXTENSION IF NOT EXISTS vector
    • Schema definition for vector data

      • Example of creating a table with vector columns:
        • CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3))
    • Vector insertion

      • Demonstrates inserting vector data into PostgreSQL from Erlang:
        • INSERT INTO items (embedding) VALUES ($1), ($2) with vector values like [1,2,3].
    • Nearest neighbor queries

      • Example query to retrieve nearest neighbors by distance:
        • SELECT id FROM items ORDER BY embedding <-> $1 LIMIT 5
      • Uses the <-> operator for distance-based ordering.
    • Approximate nearest neighbor indexing

      • Examples of creating approximate indexes for faster search:
        • HNSW index: CREATE INDEX ON items USING hnsw (embedding vector_l2_ops)
        • IVFFlat index: CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)
    • Multiple distance metrics

      • Support for different operator classes via configuration in SQL:
        • vector_l2_ops – L2 (Euclidean) distance
        • vector_ip_ops – inner product
        • vector_cosine_ops – cosine distance
    • Example project setup for development

      • Steps shown in the repo for running the example:
        • Clone repository
        • Create test database pgvector_erlang_test
        • Build with rebar3 escriptize
        • Run example script from _build/default/bin/example
      • Full example available in src/example.erl.

    Integration

    • Primary driver: epgsql (Erlang PostgreSQL driver)
    • Database: PostgreSQL with pgvector extension enabled

    Pricing

    • Not specified in the provided content. The project appears to be an open-source library hosted on GitHub.
    Surveys

    Loading more......

    Information

    Websitegithub.com
    PublishedDec 30, 2025

    Categories

    1 Item
    Sdks & Libraries

    Tags

    3 Items
    #Sdk#Pgvector#vector store

    Similar Products

    6 result(s)
    pgvector-cobol

    COBOL bindings and examples for pgvector, letting legacy COBOL systems interact with PostgreSQL as a vector database.

    pgvector-crystal

    Crystal language client for pgvector, providing idiomatic Crystal access to vector operations in PostgreSQL.

    pgvector-dotnet

    .NET (C#, F#, Visual Basic) library for pgvector that exposes vector storage and similarity queries on PostgreSQL to .NET applications.

    pgvector-elixir

    Elixir wrapper and examples for pgvector, integrating PostgreSQL-based vector search into Elixir ecosystems like Phoenix.

    pgvector-gleam

    Gleam language client and examples for pgvector, allowing Gleam applications to perform vector similarity search using PostgreSQL.

    pgvector-haskell

    Haskell bindings and examples for pgvector, enabling Haskell applications to treat PostgreSQL as a vector database.

    Decorative pattern
    Built with
    Ever Works
    Ever Works

    Connect with us

    Stay Updated

    Get the latest updates and exclusive content delivered to your inbox.

    Product

    • Categories
    • Tags
    • Pricing
    • Help

    Clients

    • Sign In
    • Register
    • Forgot password?

    Company

    • About Us
    • Admin
    • Sitemap

    Resources

    • Blog
    • Submit
    • API Documentation
    All product names, logos, and brands are the property of their respective owners. All company, product, and service names used in this repository, related repositories, and associated websites are for identification purposes only. The use of these names, logos, and brands does not imply endorsement, affiliation, or sponsorship. This directory may include content generated by artificial intelligence.
    Copyright © 2025 Awesome Vector Databases. All rights reserved.·Terms of Service·Privacy Policy·Cookies