discourse-ai/spec/lib/modules/ai_helper
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
..
assistant_spec.rb DEV: Better control what prompts can appear in post/composer (#969) 2024-11-27 16:14:21 -08:00
chat_thread_titler_spec.rb FIX: Bail earlier when a chat thread has no messages (#789) 2024-08-30 17:17:14 -03:00
entry_point_spec.rb DEV: Clearly separate post/composer helper settings (#747) 2024-08-12 15:40:23 -07:00
painter_spec.rb DEV: Transition "Select model" settings to only use LlmModels (#675) 2024-06-19 18:01:35 -03:00
semantic_categorizer_spec.rb REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00