AI not answering questions until after many tries

I’ve been using this add-on for a couple days now and am loving it so far! For many cards, when I click on “Can you explain this topic” Ankihub AI states the question is outside the scope of the current cards context. Here are a few examples (Ankihub ID: 1488768050748, 1485053782197, 1476498931943, 1496498154874, 1462327808151). The follow up questions it provides are usually great and will explain the card so it’s not a huge issue, but the code should probably be updated in a future update to fix this. I did notice that if I keep clicking on “Can you Explain This” it will usually (but not always) give a response (often on the 3rd attempt).

Nice find! I was able to recreate this. This shouldn’t be happening

1st attempt

2nd attempt

3rd attempt

1st attempt from LangSmith
Run ID: b68941ba-c492-45b1-8e20-ae38270d13a2
Trace ID: b68941ba-c492-45b1-8e20-ae38270d13a2

For the 3rd attempt from LangSmith
Run ID: 70dce590-be7d-4290-aa7a-238bb8b2f2ea
Trace ID: 70dce590-be7d-4290-aa7a-238bb8b2f2ea

cc @Brian_BH @andrew

2 Likes