This change addresses the creation of too many similar primary groups by adding an LLM-powered consolidation step.
The GroupAIEntries function now processes entry chunks in parallel. A new consolidatePrimaryGroups function is introduced, which calls an LLM to merge the initial, numerous group titles into a smaller set. The logic preserves any group titles that the LLM fails to map, and this behavior is verified in a new unit test.
Additionally, all prompt constants have been moved from ai.go into a new internal/digest/view/ai_prompts.go file.
This change addresses the creation of too many similar primary groups by adding an LLM-powered consolidation step.
The GroupAIEntries function now processes entry chunks in parallel. A new consolidatePrimaryGroups function is introduced, which calls an LLM to merge the initial, numerous group titles into a smaller set. The logic preserves any group titles that the LLM fails to map, and this behavior is verified in a new unit test.
Additionally, all prompt constants have been moved from ai.go into a new internal/digest/view/ai_prompts.go file.
This change addresses the creation of too many similar primary groups by adding an LLM-powered consolidation step.
The GroupAIEntries function now processes entry chunks in parallel. A new consolidatePrimaryGroups function is introduced, which calls an LLM to merge the initial, numerous group titles into a smaller set. The logic preserves any group titles that the LLM fails to map, and this behavior is verified in a new unit test.
Additionally, all prompt constants have been moved from ai.go into a new internal/digest/view/ai_prompts.go file.
Moves the Go structs for LLM responses into the `ai_prompts.go` file, alongside the prompts that generate them.
The structs have been renamed to better associate them with their corresponding prompt variables:
- `GroupingResponse` is now `InitialGroupingResponse`
- `AIGroupSummaryResponse` is now `SummaryResponse`
- `AISubGroupingResponse` is now `SubGroupingResponse`
This change improves maintainability by keeping the prompt, its expected response type, and its schema in the same file.
eleith
merged commit b2795d95fc into main2025-09-12 22:23:59 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This change addresses the creation of too many similar primary groups by adding an LLM-powered consolidation step.
The GroupAIEntries function now processes entry chunks in parallel. A new consolidatePrimaryGroups function is introduced, which calls an LLM to merge the initial, numerous group titles into a smaller set. The logic preserves any group titles that the LLM fails to map, and this behavior is verified in a new unit test.
Additionally, all prompt constants have been moved from ai.go into a new internal/digest/view/ai_prompts.go file.