Aggregate-Intellect / sherpa

https://sherpa-ai.readthedocs.io/
Other
165 stars 46 forks source link

Create a `/verbose` slash command in the slackbot to show the thought process #61

Closed johnnykfeng closed 1 year ago

johnnykfeng commented 1 year ago

I notice people rarely use the -verbose flag. Sometimes I just want to see the thought process after the query, and I don't want to run the query again just to include -verbose. Having a function that reveals the thought process after the query reduces that friction.

I found a tutorial for creating slash commands, it seems simple enough. https://www.youtube.com/watch?v=sEFx0b9y_Xo&list=PLzMcBGfZo4-kqyzTzJWCV6lyK-ZMYECDc&index=3

20001LastOrder commented 1 year ago

Does this mean we need to store the thought process somewhere else than the slack chat history?

amirfz commented 1 year ago

well, -verbose is not expected to be used a lot since it's (atm) mostly for debugging purposes. the second part is interesting though. what info would you be looking for when you want to explore the "thought" process? like what's your objective? @johnnykfeng

johnnykfeng commented 1 year ago

@20001LastOrder Not quite, my idea is just to access the thought process stored as the logger attribute in TaskAgent. Every time we use the run method, the logger is updated, so the object always contain the thought process of the most recent query. \verbose should just print task_agent.logger

@amirfz The objective is just easier implementation of verbose. Also this can serve as template for creating more slash commands in the future

amirfz commented 1 year ago

@johnnykfeng i feel like this might be easiest to discuss during our next call. will you be able to join the one on Tues?

johnnykfeng commented 1 year ago

@amirfz Sure, what time on Tuesday?

amirfz commented 1 year ago

noon. you should have a calendar invite

On Mon, Aug 7, 2023 at 10:56 PM John Feng @.***> wrote:

@amirfz https://github.com/amirfz Sure, what time on Tuesday?

— Reply to this email directly, view it on GitHub https://github.com/Aggregate-Intellect/practical-llms/issues/61#issuecomment-1668832471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4OK5ISSKCY34G6HOISNYDXUGTFJANCNFSM6AAAAAA3BYDNSY . You are receiving this because you were mentioned.Message ID: @.***>