discourse-ai/app/jobs/regular
Roman Rizzi f9d7d7f5f0
DEV: AI bot migration to the Llm pattern. (#343)
* DEV: AI bot migration to the Llm pattern.

We added tool and conversation context support to the Llm service in discourse-ai#366, meaning we met all the conditions to migrate this module.

This PR migrates to the new pattern, meaning adding a new bot now requires minimal effort as long as the service supports it. On top of this, we introduce the concept of a "Playground" to separate the PM-specific bits from the completion, allowing us to use the bot in other contexts like chat in the future. Commands are called tools, and we simplified all the placeholder logic to perform updates in a single place, making the flow more one-wayish.

* Followup fixes based on testing

* Cleanup unused inference code

* FIX: text-based tools could be in the middle of a sentence

* GPT-4-turbo support

* Use new LLM API
2024-01-04 10:44:07 -03:00
..
create_ai_reply.rb DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -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 FEATURE: Per post embeddings (#387) 2023-12-29 12:28:45 -03:00
post_sentiment_analysis.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
stream_post_helper.rb FEATURE: Add streaming to post AI helper's explain option (#344) 2023-12-12 09:28:39 -08: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: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00