discourse-ai/spec/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_persona_spec.rb FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
ai_tool_spec.rb FIX: encode parameters returned from LLMs correctly (#889) 2024-11-04 10:07:17 +11:00
completion_prompt_spec.rb FIX: regression, no longer sending examples to AI helper (#993) 2024-12-03 16:03:46 +11:00
llm_model_spec.rb DEV: Prefer ENV key for seeded models (#893) 2024-11-05 06:19:13 -08:00
model_accuracy_spec.rb DEV: Update linting (#423) 2024-01-13 00:28:06 +01:00
rag_document_fragment_spec.rb REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00
reviewable_ai_chat_message_spec.rb DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
reviewable_ai_post_spec.rb DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
shared_ai_conversation_spec.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
user_option_spec.rb DEV: Clearly separate post/composer helper settings (#747) 2024-08-12 15:40:23 -07:00