pgvector-lisp
Lisp bindings and examples for pgvector, allowing Common Lisp projects to leverage PostgreSQL as a vector store.
About this tool
pgvector-lisp
Category: SDKs & Libraries
Brand: pgvector
License: MIT
Source: https://github.com/pgvector/pgvector-lisp
Lisp bindings and examples for using the pgvector PostgreSQL extension from Common Lisp, supporting multiple database libraries.
Features
Core Functionality
- Provides Common Lisp examples for integrating with the pgvector PostgreSQL extension.
- Enables using PostgreSQL as a vector store in Common Lisp applications.
- Supports vector operations via existing Common Lisp database libraries.
Supported Database Libraries
- Postmodern
- Integration examples for using pgvector with the Postmodern PostgreSQL client.
- Instructions for enabling the
vectorextension in PostgreSQL. - Example code for defining tables with vector columns and running queries.
- CL-DBI
- Integration examples for using pgvector with CL-DBI.
- Example code demonstrating how to work with vector columns via CL-DBI.
Example Workflows
- Embeddings with OpenAI
- Example showing how to generate embeddings using OpenAI and store/query them in PostgreSQL via pgvector.
- Binary Embeddings with Cohere
- Example demonstrating use of binary embeddings from Cohere with pgvector.
- Hybrid Search with Ollama
- Example of hybrid search combining signals (e.g., using Reciprocal Rank Fusion) with pgvector.
- Sparse Search with Text Embeddings Inference
- Example of sparse vector search using Text Embeddings Inference with pgvector.
Repository Contents
postmodern.lisp– sample code for Postmodern-based integration.cl-dbi.lisp– sample code for CL-DBI-based integration.examples/– multiple end-to-end examples for embeddings, binary embeddings, hybrid search, and sparse search.- GitHub Actions workflows configuration under
.github/workflows.
Getting Started
- Choose your database library:
- Follow the Postmodern section for Postmodern-based projects.
- Follow the CL-DBI section for CL-DBI-based projects.
- Use the examples in
examples/as templates for:- Setting up pgvector in PostgreSQL (enabling the
vectorextension). - Creating tables with vector (and possibly sparse) columns.
- Inserting, updating, and querying vector data.
- Setting up pgvector in PostgreSQL (enabling the
Pricing
- Not applicable. This is an open-source MIT-licensed library with no pricing plans.
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.
Gleam language client and examples for pgvector, allowing Gleam applications to perform vector similarity search using PostgreSQL.