Recollect.EmbeddingType (recollect v0.5.1)

Copy Markdown View Source

Ecto type for embedding vectors that works with both PostgreSQL and libSQL.

For PostgreSQL: Uses Pgvector.Ecto.Vector when available For libSQL: Stores as JSON text and converts to list

This type automatically detects the configured adapter and handles serialization/deserialization accordingly.

Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Functions

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.