How can I fix the duplicate key value error in AI summaries?

Thanks for the update! Unfortunately it seems the summary is sometimes broke with the following error for me. :confused:

Job exception: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "ai_summaries_pkey"
DETAIL:  Key (id)=(7) already exists.

Ah ok it seems fixed by change the model name from claude-3-5-sonnet to claude-3-5-sonnet-20240620. Found here: Models - Anthropic

Nope it happened again :confused:


Any idea to solve it? The problem is the topic summarization is not finishing. It generation is stuck on the end of the summary so it can’t save. So it can’t comes from cache when I open the topic again and every time the summary generate again. Now I have to disable the topic summaries. I have no idea why this happens. I experienced the same on Meta after merged the (Add the summarization logic from core) commit but not anymore happens here.

However it isn’t seems to related with Claude 3.5 Sonnet (I tried it with others too) but the topic summarization. So maybe would be better to move to other topic… Thanks :slightly_smiling_face:

2 Likes

Thanks @Falco, This fix seems solved my issue :point_up:
I did a few test summarization now and works great. :heart_eyes:

5 Likes