Would be great if the addon allows user to override the sys prompt (it might need minor tweak when changing different server backend)?
We've actually been thinking along similar lines. Here are a couple of improvements we're considering:
1. Built-in prompt templates - Support multiple flavors (e.g. On similar to is there already, in addition to knowledge of up/down votes, another one similar to what Simon had - which is more detailed etc.)
2. User-editable prompts - Exactly like you said - make the prompts user editable.
One additional thought: Since summaries currently take ~20 seconds and incur API costs for each user, we're exploring the idea of an optional "shared summaries" feature. This would let users access cached summaries instantly (shared by someone else), while still having the option to generate fresh ones when needed. Would this be something you'd find useful?
We'd love to hear your thoughts on these ideas.
The solution that I have adopted is as follows. Each comment is represented in the following notation:
To this end, I format the output from Algolia as follows: After this, I provide a system prompt as follows: The benefit is that, I can parse the output from the LLM and create links back to the original comment thread.You can read about my approach in more detail here: https://gist.github.com/simonw/09e5922be0cbb85894cf05e6d75ae...