discourse-ai/spec/models
Sam 5cbc9190eb
FEATURE: RAG search within tools (#802)
This allows custom tools access to uploads and sophisticated searches using embedding.

It introduces:

 - A shared front end for listing and uploading files (shared with personas)
 -  Backend implementation of index.search function within a custom tool.

Custom tools now may search through uploaded files

function invoke(params) {
   return index.search(params.query)
}

This means that RAG implementers now may preload tools with knowledge and have high fidelity over
the search.

The search function support

    specifying max results
    specifying a subset of files to search (from uploads)

Also

 - Improved documentation for tools (when creating a tool a preamble explains all the functionality)
  - uploads were a bit finicky, fixed an edge case where the UI would not show them as updated
2024-09-30 17:27:50 +10:00
..
ai_persona_spec.rb FEATURE: Make tool support polymorphic (#798) 2024-09-16 08:17:17 +10:00
ai_tool_spec.rb FEATURE: RAG search within tools (#802) 2024-09-30 17:27:50 +10:00
completion_prompt_spec.rb REFACTOR: Represent generic prompts with an Object. (#416) 2024-01-12 14:36:44 -03:00
model_accuracy_spec.rb DEV: Update linting (#423) 2024-01-13 00:28:06 +01:00
rag_document_fragment_spec.rb FEATURE: Make tool support polymorphic (#798) 2024-09-16 08:17:17 +10: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