mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
* FEATURE: Topic summarization Summarize topics using the TopicView's "summary" filter. The UI is similar to what we do for chat, but we don't allow the user to select a timeframe. Co-authored-by: Rafael dos Santos Silva <xfalcox@gmail.com>
19 lines
596 B
Ruby
19 lines
596 B
Ruby
# frozen_string_literal: true
|
|
|
|
DiscourseAi::Engine.routes.draw do
|
|
scope module: :ai_helper, path: "/ai-helper", defaults: { format: :json } do
|
|
get "prompts" => "assistant#prompts"
|
|
post "suggest" => "assistant#suggest"
|
|
end
|
|
|
|
scope module: :embeddings, path: "/embeddings", defaults: { format: :json } do
|
|
get "semantic-search" => "embeddings#search"
|
|
end
|
|
|
|
scope module: :summarization, path: "/summarization", defaults: { format: :json } do
|
|
post "summary" => "summary#show"
|
|
end
|
|
end
|
|
|
|
Discourse::Application.routes.append { mount ::DiscourseAi::Engine, at: "discourse-ai" }
|