Description

pgvector, open-source vector similarity search for Postgres.

Examples

Dependency:
<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>postgresql</artifactId>
    <version>1.20.0</version>
    <scope>test</scope>
</dependency>
Usage:
var image = DockerImageName.parse("pgvector/pgvector:pg16")
    .asCompatibleSubstituteFor("postgres");
var pgVector = new PostgreSQLContainer<>(image);
pgVector.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/postgres
Usage:
pgVectorContainer, err := postgres.Run(ctx,
  "pgvector/pgvector:pg16",
  postgres.WithDatabase("test"),
  postgres.WithUsername("user"),
  postgres.WithPassword("password"),
)
Dependency:
dotnet add package Testcontainers.PostgreSql --version 3.9.0
Usage:
var pgVectorContainer = new PostgreSqlBuilder()
  .WithImage("pgvector/pgvector:pg16")
  .Build();
await pgVectorContainer.StartAsync();
Dependency:
npm install @testcontainers/postgresql --save-dev
Usage:
const container = await new PostgreSqlContainer(image="pgvector/pgvector:pg16").start();