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 ¶
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.
Click to show internal directories.
Click to hide internal directories.