discourse-ai/lib/ai_bot
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
..
personas REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00
tools FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
bot.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
entry_point.rb FIX: Correctly register 'info' icon (#950) 2024-11-25 10:20:17 -03:00
playground.rb FEATURE: first class support for OpenRouter (#1011) 2024-12-10 05:59:19 +11:00
post_streamer.rb FIX: cancel functionality regressed (#938) 2024-11-21 17:51:45 +11:00
question_consolidator.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
response_http_streamer.rb FEATURE: support custom instructions for persona streaming (#890) 2024-11-05 07:43:26 +11:00
site_settings_extension.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
tool_runner.rb REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00