discourse-ai/lib/embeddings/vector_representations
Roman Rizzi eae527f99d
REFACTOR: A Simpler way of interacting with embeddings tables. (#1023)
* REFACTOR: A Simpler way of interacting with embeddings' tables.

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.
2024-12-13 10:15:21 -03:00
..
all_mpnet_base_v2.rb REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
base.rb REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00
bge_large_en.rb REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
bge_m3.rb REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
gemini.rb FIX: Gemini inference client was missing #instance (#1019) 2024-12-10 15:42:31 -03:00
multilingual_e5_large.rb FIX: Skip records without content to classify (#960) 2024-11-26 15:54:20 -03:00
text_embedding_3_large.rb REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
text_embedding_3_small.rb REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
text_embedding_ada_002.rb REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00