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

pgvector-crystal

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

🌐Visit Website

About this tool

pgvector-crystal

Crystal language examples and client usage for pgvector, showing how to work with vector operations in PostgreSQL from Crystal.

  • Category: SDKs & Libraries
  • Tags: sdk, pgvector, vector-store
  • Language / Stack: Crystal, PostgreSQL, pgvector
  • License: MIT
  • Source: https://github.com/pgvector/pgvector-crystal

Overview

pgvector-crystal provides example code and patterns for using the pgvector extension from Crystal, with support for the crystal-pg PostgreSQL driver. It demonstrates how to perform vector similarity and related operations in PostgreSQL from Crystal-based applications.


Features

  • pgvector integration examples for Crystal

    • Demonstrates how to use the pgvector PostgreSQL extension from Crystal code.
  • Support for crystal-pg

    • Examples are built around the crystal-pg database library.
  • Embeddings workflows

    • Example for using embeddings with OpenAI:
      • How to generate embeddings via OpenAI.
      • How to store and query them with pgvector.
  • Binary embeddings

    • Example for using binary embeddings with Cohere:
      • Handling binary embedding representations.
      • Integration with pgvector for storage and search.
  • Hybrid search

    • Example with Ollama using Reciprocal Rank Fusion (RRF):
      • Combining multiple ranking signals (e.g., vector and keyword scores).
      • Demonstrates hybrid search patterns with pgvector.
  • Sparse search

    • Example of sparse search using text embeddings:
      • Handling sparse vector representations.
      • Querying sparse vectors stored in PostgreSQL.
  • Example directory structure

    • examples/openai/example.cr – embeddings with OpenAI.
    • examples/cohere/example.cr – binary embeddings with Cohere.
    • examples/hybrid/example.cr – hybrid search with Ollama (RRF).
    • examples/sparse/example.cr – sparse search with text embeddings.

Getting Started

  • Follow the setup instructions for your database library:
    • crystal-pg: primary supported driver (see README in the repository for exact steps).
  • Explore the provided Crystal example files in the examples/ directory to learn specific integration patterns.

Pricing

  • Not applicable. This is an open-source project released under the MIT license.
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-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.

pgvector-haskell

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

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