Go to file
Roman Rizzi 46fcdb6ba5
FIX: Make summaries backfill job more resilient. (#1071)
To quickly select backfill candidates without comparing SHAs, we compare the last summarized post to the topic's highest_post_number. However, hiding or deleting a post and adding a small action will update this column, causing the job to stall and re-generate the same summary repeatedly until someone posts a regular reply. On top of this, this is not always true for topics with `best_replies`, as this last reply isn't necessarily included.

Since this is not evident at first glance and each summarization strategy picks its targets differently, I'm opting to simplify the backfill logic and how we track potential candidates.

The first step is dropping `content_range`, which serves no purpose and it's there because summary caching was supposed to work differently at the beginning. So instead, I'm replacing it with a column called `highest_target_number`, which tracks `highest_post_number` for topics and could track other things like channel's `message_count` in the future.

Now that we have this column when selecting every potential backfill candidate, we'll check if the summary is truly outdated by comparing the SHAs, and if it's not, we just update the column and move on
2025-01-16 09:42:53 -03:00
.github/workflows Initial commit 2023-02-17 11:33:47 -03:00
admin/assets/javascripts/discourse UX: No admin header for edit personas tools or llms (#1021) 2024-12-12 10:48:58 +11:00
app FIX: Make summaries backfill job more resilient. (#1071) 2025-01-16 09:42:53 -03:00
assets FIX: Composer helper not appearing on tablets (#1064) 2025-01-14 09:35:31 -08:00
config Update translations (#1060) 2025-01-14 16:20:00 +01:00
db FIX: Make summaries backfill job more resilient. (#1071) 2025-01-16 09:42:53 -03:00
discourse_automation FEATURE: Select stop sequences from triage script (#1010) 2024-12-06 11:13:47 -03:00
lib FIX: Make summaries backfill job more resilient. (#1071) 2025-01-16 09:42:53 -03:00
public/ai-share UX: improve artifact styling add direct share link (#930) 2024-11-20 13:13:03 +11:00
spec FIX: Make summaries backfill job more resilient. (#1071) 2025-01-16 09:42:53 -03:00
svg-icons UX: update gist toggle styles (#926) 2024-11-19 15:33:34 -05:00
test/javascripts DEV: Improve explain suggestion footnote replacement (#999) 2024-12-04 11:41:34 -08:00
tokenizers FEATURE: Set endpoint credentials directly from LlmModel. (#625) 2024-05-16 09:50:22 -03:00
.discourse-compatibility FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
.gitignore FEATURE: Discord Bot integration (#831) 2024-10-16 12:41:18 -03:00
.npmrc DEV: Switch to use pnpm (#833) 2024-10-14 13:37:20 +02: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 Build(deps-dev): Bump rexml from 3.3.6 to 3.3.9 (#874) 2024-10-28 20:44:39 +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
eslint.config.mjs DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
package.json DEV: Update linting (#974) 2024-11-28 16:07:42 +01:00
plugin.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
pnpm-lock.yaml DEV: Update linting (#974) 2024-11-28 16:07:42 +01:00
translator.yml UX: Display the indexing progress for RAG uploads (#557) 2024-04-09 11:03:07 -03:00

README.md

Discourse AI Plugin

Plugin Summary

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