Open Aemulation opened 1 month ago
I spoke with @Aemulation on Friday and I have been able to replicate using Teams AI library v1.3.1.
I noticed that
{
"role": "user",
"content": "No arguments were sent with called action. Call the \"document_search_post\" action with required arguments as a valid JSON object."
},
I have seen this error before in the .NET library, the first time the action is called it works, but any action called after the initial response returns this error, see my comment on #1130.
@MuyangAmigo the scaffolded project from TTK uses an older version of Teams AI library. Are there any plans to update the template to the latest version?
Hey @Aemulation, thanks for sharing this bug. I will need to repro this on my end to debug. In the meantime, @garrytrinder what was the response shown in the UI?
And what is the other prompt you sent that returned the error snippet?
Just to double check- this is with Python? I'm trying to follow TTK flow but only JS/TS is popping up
what was the response shown in the UI?
These are screenshots taken minutes ago. No errors but you can see the message that is returned "Searching for information about XXX" after both responses. Previously in my tests the second prompt would never return a result.
And what is the other prompt you sent that returned the error snippet?
I've just tried to repro the error but it seems to be working fine.
Below is from a different app but is representative of the error that I was seeing.
Just to double check- this is with Python? I'm trying to follow TTK flow but only JS/TS is popping up
This is JS/TS, not Python.
Hey @Aemulation ,
Just tried repro'd on my end, but it looks to be working. Placed a breakpoint and the action does get hit, and the card gets rendered. There's also a followup message after the query.
Hi @lilyydu,
I've tried multiple times, but I never get a "search result has been retrieved" message. These are all separate chats.
Is this correct/expected behaviour?
Adittionally, I sometimes get these weird errors
Between attempts, I completely stopped the "preview your teams app" and restarted it.
Hi @Aemulation,
I can't seem to repro'd your responses but my working screenshot above should be the general expected behaviour. There can be variability with LLMs in general, but our differences could be partially with the model used. Which model are you using? I am assuming you are using OpenAI?
Does the above highlight all the code changes you have made to the bot?
CC @corinagum could you try on your end to see if you can repro as well?
Hi @lilyydu,
I'm indeed using OpenAI, and the change I mentioned is the only one I made to the bot.
@Aemulation - what version are you using?
Which version of teams-ai
? I tried both 1.1.0 (the default in teams toolkit) and 1.3.1, but got similar results.
@Aemulation - version for the LLM
Aha, I'm using gpt-3.5-turbo @lilyydu
@SubbaReddi could you please distribute to your team? @lilyydu is unable to get a repro.
@corinagum , @lilyydu : I can reproduce the issue with the provided repro steps. Results are appearing from document search but finally displaying following message: "Searching for information about..."
Find attachment for issue recording and chat response details:
https://github.com/user-attachments/assets/95126528-90eb-4a48-ad10-4d0cd8f60b78
Hey @therealjohn, just wondering if you've seen issues like this with the TTK sample before. I'm beginning investigation but thought it was worth asking :)
A small update: I am actively investigating this issue and spent most of today debugging this. I don't have any full answers yet, only some small notes that don't resolve the main issue at hand (yet). I will resume tomorrow with aacebo's help.
Language
JS
Version
Tried both 1.1.0 and 1.3.1
Description
We're trying to make a "chat with your data" using our custom api. This api returns documents related to a search query, the bot should use those results to e.g. make a summary.
After asking the bot to look something up, it prints the result of the call to our api, after which it prints in another message "Searching for information about...". So while it has already received the data, it doesn't realize it and keeps waiting. Following up with the command "summarize your findings" results in the message "I am still searching for information about...".
The api spec used in the reproduction steps:
I modified
/src/app/app.ts
as described in the reproduction steps Line 57-59Has been changed to
Reproduction Steps