discourse-ai/spec
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
..
fabricators FEATURE: UI to update ai personas on admin page (#290) 2023-11-21 16:56:43 +11:00
fixtures/embeddings FEATURE: Embeddings to main db (#99) 2023-07-13 12:41:36 -03:00
jobs/regular DEV: Cook streamed suggestion (#354) 2023-12-13 12:24:22 -08:00
lib DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
models FIX: Custom instructions where missing when generating custom prompt input (#348) 2023-12-11 19:26:56 -03:00
requests DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
serializers Revert "FIX: Use Guardian.basic_user instead of new (anon) (#332)" (#337) 2023-12-06 16:26:43 +10:00
shared DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
support DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
system DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
plugin_spec.rb DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00