discourse-ai/lib/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.rb DEV: Better control what prompts can appear in post/composer (#969) 2024-11-27 16:14:21 -08:00
chat_thread_titler.rb FIX: Bail earlier when a chat thread has no messages (#789) 2024-08-30 17:17:14 -03:00
entry_point.rb DEV: ensure far-copy icon is included in subset (#841) 2024-10-16 12:32:13 -04:00
painter.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
semantic_categorizer.rb REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00