discourse-ai/app/models
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
..
ai_api_audit_log.rb FEATURE: Enhance AI debugging capabilities and improve interface adjustments (#577) 2024-04-15 23:22:06 +10:00
ai_persona.rb FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
chat_message_custom_prompt.rb FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
classification_result.rb DEV: Dedicated table for saving classification results (#1) 2023-02-27 16:21:40 -03:00
completion_prompt.rb DEV: correct flaky spec (#475) 2024-02-19 15:21:55 +11:00
model_accuracy.rb REFACTOR: Store prompts in a dedicated table. (#14) 2023-03-17 15:14:19 -03:00
post_custom_prompt.rb FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
rag_document_fragment.rb UX: Display the indexing progress for RAG uploads (#557) 2024-04-09 11:03:07 -03:00
reviewable_ai_chat_message.rb FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable_ai_post.rb REFACTOR: Store prompts in a dedicated table. (#14) 2023-03-17 15:14:19 -03:00
shared_ai_conversation.rb FIX: Secure/unsecure uploads when sharing AI conversations (#554) 2024-04-11 10:00:41 +10:00