Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REFACTOR: A Simpler way of interacting with embeddings tables. #1023

Merged
merged 8 commits into from
Dec 13, 2024

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants