Go to file
Roman Rizzi aef84bc5bb
FEATURE: Examples support for personas. (#1334)
Examples simulate previous interactions with an LLM and come
right after the system prompt. This helps grounding the model and
producing better responses.
2025-05-13 10:06:16 -03:00
.github/workflows
admin/assets/javascripts/discourse DEV: migrates tools form to form-kit (#1204) 2025-04-22 09:23:25 -07:00
app FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
assets FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
config FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
db FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
discourse_automation FEATURE: allow to send LLM reports to groups (#1246) 2025-04-07 15:31:30 +10:00
evals DEV: Support multiple tests per eval and followups per test (#1199) 2025-03-18 11:42:05 +08:00
lib FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
public/ai-share
spec FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
svg-icons
test/javascripts FEATURE: Bot Conversation Homepage (#1273) 2025-04-22 10:22:03 -05:00
tokenizers
.discourse-compatibility DEV: Add compatibility with the Glimmer Post Stream (#1230) 2025-04-29 23:55:54 -03:00
.gitignore FEATURE: allow tools to amend personas (#1250) 2025-04-09 15:48:25 +10:00
.npmrc
.prettierignore
.prettierrc.cjs
.rubocop.yml
.streerc
.template-lintrc.cjs
Gemfile
Gemfile.lock Build(deps-dev): Bump rack from 3.1.12 to 3.1.14 (#1327) 2025-05-12 17:11:57 -03:00
LICENSE
README.md
about.json DEV: GH CI needs discourse-solved (#1220) 2025-03-26 10:12:55 -03:00
eslint.config.mjs
package.json DEV: Update linting (#1194) 2025-03-17 15:14:53 +11:00
plugin.rb DEV: Update gems for Ruby 3.4 compatibility (#1281) 2025-04-24 13:02:51 -03:00
pnpm-lock.yaml DEV: Update linting (#1194) 2025-03-17 15:14:53 +11:00
stylelint.config.mjs
translator.yml

README.md

Discourse AI Plugin

Plugin Summary

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

Evals

The directory evals contains AI evals for the Discourse AI plugin. You may create a local config by copying config/eval-llms.yml to config/eval-llms.local.yml and modifying the values.

To run them use:

cd evals ./run --help

Usage: evals/run [options]
    -e, --eval NAME                  Name of the evaluation to run
        --list-models                List models
    -m, --model NAME                 Model to evaluate (will eval all models if not specified)
    -l, --list                       List evals

To run evals you will need to configure API keys in your environment:

OPENAI_API_KEY=your_openai_api_key ANTHROPIC_API_KEY=your_anthropic_api_key GEMINI_API_KEY=your_gemini_api_key