migrations

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package migrations holds the pgvector schema migrations as Go code so the embedding dimension (which must appear as a literal in the column type) can be read from PGVECTOR_DIMENSIONS at migrate-time rather than baked into a SQL file at compile-time.

Index

Constants

View Source
const DefaultDimensions = 1536

DefaultDimensions is the OpenAI text-embedding-3-small / ada-002 default. Overridable via PGVECTOR_DIMENSIONS at migrate time so the migration matches whatever the running adapter is configured for.

Variables

This section is empty.

Functions

func Embeddings0001

func Embeddings0001() *goose.Migration

Embeddings0001 returns the registered pgvector v1 migration. It is built per-call so the Provider can register it with WithGoMigrations and the goose package globals stay untouched.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL