Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upsy Don't response in channels #4

Open
intjose opened this issue Mar 7, 2024 · 6 comments
Open

Upsy Don't response in channels #4

intjose opened this issue Mar 7, 2024 · 6 comments

Comments

@intjose
Copy link

intjose commented Mar 7, 2024

Hello!

I just did the deployment of Upsy in my slack, if I send direct message to the app it responds me successfully, but if I add it to a channel and tag it it does not respond me. The strange thing is that if you have the information in its memory I get to upstash and are my channel messages, Solo does not respond or I get any message.

I hope you can help me.

2024-03-07T16:20:16Z app[e82d4ddc064318] iad [info]Espero que esto sea de ayuda. Si necesitas más asistencia, no dudes en preguntar.
2024-03-07T16:20:17Z app[e82d4ddc064318] iad [info]isItQuestion:false
2024-03-07T16:20:17Z app[e82d4ddc064318] iad [info]adding document:Es cobre una prueba de concepto with metadata:[object Object]
2024-03-07T16:20:17Z app[e82d4ddc064318] iad [info]Success
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]NEW MESSAGE
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]{
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  user: '--------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  type: 'message',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  ts: '',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  client_msg_id: '----------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  text: 'ayudame a resumirlo <@-------->',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  team: '----------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  thread_ts: '17098280.540099',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  parent_user_id: '---------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  blocks: [ { type: 'rich_text', block_id: 'mtK0h', elements: [Array] } ],
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  channel: '-------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  event_ts: '--------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]  channel_type: 'group'
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]}
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]ayudame a resumirlo <@------------>
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]isItQuestion:false
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]adding document:ayudame a resumirlo <@---------> with metadata:[object Object]
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]Success

what I find strange is that in the isItQuestion flag it appears as false

Thanks

@enesakar
Copy link
Contributor

enesakar commented Mar 8, 2024

Hello.
Can you try sending the following message to the channel and see if it is responding or not:

Upsy how are you?

@intjose
Copy link
Author

intjose commented Mar 11, 2024

I tried it, but from the channel it does not answer anything, neither in the channel nor in the channel thread, if I send a DM if it answers me, but in other places it does not.

From channel thread
Captura de pantalla 2024-03-11 a la(s) 1 04 42 p m

From channel
Captura de pantalla 2024-03-11 a la(s) 1 05 09 p m

From DM
Captura de pantalla 2024-03-11 a la(s) 1 06 00 p m

@intjose intjose closed this as completed Mar 11, 2024
@intjose intjose reopened this Mar 11, 2024
@intjose
Copy link
Author

intjose commented Mar 12, 2024

I closed it by mistake, but I'm still with the issue 😢

@enesakar
Copy link
Contributor

enesakar commented Mar 13, 2024

@intjose can you share the full logs from your fly console when you ask from channel?

@intjose
Copy link
Author

intjose commented Mar 13, 2024

sure @enesakar this is the log from the channel asking Upsy How are you?

2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]NEW MESSAGE
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]{
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] user: '-------------',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] type: 'message',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] ts: '1710351878.950979',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] client_msg_id: '---------',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] text: 'Upsy how are you?',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] team: '--------',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] thread_ts: '1709827317.288799',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] parent_user_id: '------------',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] blocks: [ { type: 'rich_text', block_id: 'jKbok', elements: [Array] } ],
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] channel: '------------',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] event_ts: '1710351878.950979',
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] channel_type: 'group'
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]}
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]Upsy how are you?
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]isItQuestion:false
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]adding document:Upsy how are you? with metadata:[object Object]
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]Success

@enesakar
Copy link
Contributor

@intjose it looks it thinks it is not a question. this is weird. In index.js can you replace:
isItQuestion = await llm.isQuestion(msg);
with
isItQuestion = true;

It should solve the issue but this time, upsy will start commenting all messages.

Ideally, we need to debug isQuestion method in llm.mjs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants