• Home
  • Categories
  • Tags
  • Pricing
  • Submit
  1. Home
  2. Sdks & Libraries
  3. pgvector-ocaml

pgvector-ocaml

OCaml client and examples for pgvector that provide access to vector indexing and nearest-neighbor search in PostgreSQL from OCaml code.

🌐Visit Website

About this tool

pgvector-ocaml

Category: SDKs & Libraries
Tags: sdk, pgvector, vector-store

Overview

pgvector-ocaml provides OCaml examples for using the pgvector PostgreSQL extension, demonstrating how to perform vector indexing and nearest-neighbor search from OCaml code. It is designed to work with the PostgreSQL-OCaml database library.

  • Language: OCaml
  • Works with: pgvector, PostgreSQL-OCaml
  • Source: https://github.com/pgvector/pgvector-ocaml

Features

  • Example OCaml code for integrating pgvector with PostgreSQL.
  • Demonstrates how to enable the pgvector extension in PostgreSQL from OCaml flows.
  • Shows how to create tables that store vector data.
  • Examples for inserting vector values into PostgreSQL using OCaml.
  • Query patterns for retrieving nearest neighbors using pgvector.
  • Demonstrates adding an approximate index for faster similarity search.
  • Usage of specific pgvector operator classes:
    • vector_ip_ops for inner product similarity.
    • vector_cosine_ops for cosine distance similarity.
  • Includes a full working example in example.ml.
  • Configured with Dune (dune, dune-project) for building OCaml code.
  • GitHub Actions workflow for automated builds (build status badge provided).

Technical Details

  • Ecosystem: PostgreSQL, pgvector extension, OCaml
  • Primary use case: Vector similarity search and indexing from OCaml applications using PostgreSQL.

Licensing

  • License file: LICENSE.txt (see repository for exact terms).

Pricing

  • Not applicable. This is an open-source library/example repository; no pricing information is provided.
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-erlang

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

pgvector-gleam

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

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 Acme. All rights reserved.·Terms of Service·Privacy Policy·Cookies