Go to file
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
.github/workflows Initial commit 2023-02-17 11:33:47 -03:00
app DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
assets FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
config DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
db DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
discourse_automation FEATURE: allow sending AI based report to a topic (#377) 2023-12-22 11:46:23 +11:00
lib DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
spec DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
test/javascripts FEATURE: allow personas to provide command options (#331) 2023-12-08 08:42:56 +11:00
tokenizers Mixtral (#376) 2023-12-26 14:49:55 -03:00
.discourse-compatibility DEV: Updates to the summarization strategy API (#301) 2023-11-21 13:27:35 -03:00
.eslintrc.cjs DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.gitignore Initial commit 2023-02-17 11:33:47 -03:00
.prettierignore FEATURE: UI to update ai personas on admin page (#290) 2023-11-21 16:56:43 +11:00
.prettierrc.cjs DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.rubocop.yml DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.streerc DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.template-lintrc.cjs DEV: Update linting (#326) 2023-11-29 23:01:48 +01:00
Gemfile DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
Gemfile.lock DEV: Update linting (#326) 2023-11-29 23:01:48 +01:00
LICENSE Initial commit 2023-02-17 11:33:47 -03:00
README.md CHORE: Update Readme (#185) 2023-09-04 15:46:35 -03:00
package.json DEV: Update linting (#326) 2023-11-29 23:01:48 +01:00
plugin.rb DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
translator.yml DEV: Add Crowdin support (#108) 2023-07-15 00:56:15 +02:00
yarn.lock DEV: Update linting (#326) 2023-11-29 23:01:48 +01:00

README.md

Discourse AI Plugin

Plugin Summary

For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco