discourse-ai/app/models
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
..
ai_api_audit_log.rb FEATURE: first class support for OpenRouter (#1011) 2024-12-10 05:59:19 +11:00
ai_artifact.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai_artifact_version.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai_moderation_setting.rb FEATURE: Add AI-powered spam detection for new user posts (#1004) 2024-12-12 09:17:25 +11:00
ai_persona.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
ai_spam_log.rb FEATURE: Add AI-powered spam detection for new user posts (#1004) 2024-12-12 09:17:25 +11:00
ai_summary.rb FIX: Multiple concurrent summaries could result in pg index errors (#973) 2024-11-28 11:53:04 -03:00
ai_tool.rb FIX: encode parameters returned from LLMs correctly (#889) 2024-11-04 10:07:17 +11:00
chat_message_custom_prompt.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
classification_result.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
completion_prompt.rb FIX: regression, no longer sending examples to AI helper (#993) 2024-12-03 16:03:46 +11:00
llm_model.rb FEATURE: Add AI-powered spam detection for new user posts (#1004) 2024-12-12 09:17:25 +11:00
model_accuracy.rb DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
post_custom_prompt.rb FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
rag_document_fragment.rb REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00
reviewable_ai_chat_message.rb DEV: Update more deprecated Font Awesome icon names (#1005) 2024-12-06 07:45:05 +11:00
reviewable_ai_post.rb DEV: Update more deprecated Font Awesome icon names (#1005) 2024-12-06 07:45:05 +11:00
shared_ai_conversation.rb FIX: close link in shared conversation model (#1007) 2024-12-05 15:19:36 -05:00