Logo
Explore Help
Sign In
discourse/discourse-ai
1
0
Fork 0
You've already forked discourse-ai
mirror of https://github.com/discourse/discourse-ai.git synced 2025-07-08 07:12:49 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/db/migrate/20240913054440_add_rag_columns_to_ai_tools.rb

9 lines
283 B
Ruby
Raw Permalink Normal View History

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 16:27:50 +09:00
# frozen_string_literal: true
class AddRagColumnsToAiTools < ActiveRecord::Migration[7.1]
def change
add_column :ai_tools, :rag_chunk_tokens, :integer, null: false, default: 374
add_column :ai_tools, :rag_chunk_overlap_tokens, :integer, null: false, default: 10
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 84ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API