discourse-ai/spec/lib/modules
Roman Rizzi ec97996905
FIX/REFACTOR: FoldContent revamp (#866)
* FIX/REFACTOR: FoldContent revamp

We hit a snag with our hot topic gist strategy: the regex we used to split the content didn't work, so we cannot send the original post separately. This was important for letting the model focus on what's new in the topic.

The algorithm doesn’t give us full control over how prompts are written, and figuring out how to format the content isn't straightforward. This means we're having to use more complicated workarounds, like regex.

To tackle this, I'm suggesting we simplify the approach a bit. Let's focus on summarizing as much as we can upfront, then gradually add new content until there's nothing left to summarize.

Also, the "extend" part is mostly for models with small context windows, which shouldn't pose a problem 99% of the time with the content volume we're dealing with.

* Fix fold docs

* Use #shift instead of #pop to get the first elem, not the last
2024-10-25 11:51:17 -03:00
..
ai_bot FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
ai_helper FIX: Bail earlier when a chat thread has no messages (#789) 2024-08-30 17:17:14 -03:00
automation FEATURE: allow llm triage to automatically hide posts (#820) 2024-10-04 16:11:30 +10:00
embeddings DEV: Add apply_modifier for SemanticTopicQuery topics list (#830) 2024-10-10 12:13:16 -05:00
nsfw DEV: Fix various typos (#434) 2024-01-19 12:51:26 +01:00
sentiment UX: Use stacked line chart for post sentiment (#737) 2024-08-02 14:23:29 -07:00
summarization FIX/REFACTOR: FoldContent revamp (#866) 2024-10-25 11:51:17 -03:00
toxicity DEV: updates spec following changes in chat (#604) 2024-05-07 15:01:06 +02:00