



Prolog client and examples for pgvector, enabling logic programs to interact with vector search capabilities in PostgreSQL.
Loading more......
Category: SDKs & Libraries
Brand: pgvector
License: MIT
Source: https://github.com/pgvector/pgvector-prolog
Prolog examples for using the pgvector PostgreSQL extension via the postgresql-prolog client, enabling Prolog programs to work with vector data and perform vector similarity search in PostgreSQL.
Prolog integration with pgvector
postgresql-prolog database library.Database setup examples
vector extension in PostgreSQL:
CREATE EXTENSION IF NOT EXISTS vector.CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3)).Vector data operations
vector column.
[1,2,3] into embedding.SELECT * FROM items ORDER BY embedding <-> '[3,1,2]' LIMIT 5.Example Prolog script
example.pl demonstrates:
postgresql-prolog.CI / workflow configuration
.github/workflows (e.g., for basic automation / checks on the repo).postgresql-prolog.vector extension in your PostgreSQL database:
CREATE EXTENSION IF NOT EXISTS vector.vector column (e.g., embedding vector(3)).example.pl to: