discourse-ai/app/jobs/regular
Sam e4b326c711
FEATURE: support Chat with AI Persona via a DM (#488)
Add support for chat with AI personas

- Allow enabling chat for AI personas that have an associated user
- Add new setting `allow_chat` to AI persona to enable/disable chat
- When a message is created in a DM channel with an allowed AI persona user, schedule a reply job
- AI replies to chat messages using the persona's `max_context_posts` setting to determine context
- Store tool calls and custom prompts used to generate a chat reply on the `ChatMessageCustomPrompt` table
- Add tests for AI chat replies with tools and context

At the moment unlike posts we do not carry tool calls in the context.

No @mention support yet for ai personas in channels, this is future work
2024-05-06 09:49:02 +10:00
..
create_ai_chat_reply.rb FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
create_ai_reply.rb FEATURE: mentionable personas and random picker tool, context limits (#466) 2024-02-15 16:37:59 +11:00
digest_rag_upload.rb FIX: RAG uploader must support multi-file indexing. (#592) 2024-04-25 10:48:55 -03:00
evaluate_post_uploads.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
generate_chat_thread_title.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
generate_embeddings.rb FIX: Don't try to generate embeddings of posts in deleted topics (#433) 2024-01-18 16:10:25 -03:00
generate_rag_embeddings.rb FEATURE: allow tuning of RAG generation (#565) 2024-04-12 10:32:46 -03:00
post_sentiment_analysis.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
shared_conversation_adjust_upload_security.rb FIX: Secure/unsecure uploads when sharing AI conversations (#554) 2024-04-11 10:00:41 +10:00
stream_post_helper.rb FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
toxicity_classify_chat_message.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
toxicity_classify_post.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
update_ai_bot_pm_title.rb DEV: improve internal design of ai persona and bug fix (#495) 2024-02-28 16:46:32 +11:00