Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@romanrizzi
Copy link
Member

This change adds a new abstraction called Schema, which acts as a repository that supports the same DB features VectorRepresentation::Base has, with the exception that removes the need to have duplicated methods per embeddings table.

It is also a bit more flexible when performing a similarity search because you can pass it a block that gives you access to the builder, allowing you to add multiple joins/where conditions.

This change adds a new abstraction called `Schema`, which acts as a repository that supports the same DB features `VectorRepresentation::Base` has, with the exception that removes the need to have duplicated methods per embeddings table.

It is also a bit more flexible when performing a similarity search because you can pass it a block that gives you access to the builder, allowing you to add multiple joins/where conditions.
@romanrizzi romanrizzi force-pushed the embeddings_schema_refactor branch from d797f7f to 1e2936d Compare December 11, 2024 20:26
@romanrizzi romanrizzi changed the title REFACTOR: A Simpler way of interacting with embeddings' tables. REFACTOR: A Simpler way of interacting with embeddings tables. Dec 12, 2024
@romanrizzi romanrizzi marked this pull request as ready for review December 12, 2024 19:06
@romanrizzi romanrizzi merged commit eae527f into main Dec 13, 2024
6 checks passed
@romanrizzi romanrizzi deleted the embeddings_schema_refactor branch December 13, 2024 13:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants