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

Smart responses for error logs #56

Open
sttephen opened this issue Dec 20, 2022 · 17 comments
Open

Smart responses for error logs #56

sttephen opened this issue Dec 20, 2022 · 17 comments
Assignees
Labels
enhancement New feature or request low priority

Comments

@sttephen
Copy link

Explain your idea.

I think at this stage we should be having responses for error logs to automate some tickets.

The bot should look at error logs given and present the exact line of the error.

It should also be able to provide a smart response for certain phrases. Spigot is not perfect with sharing error information, but I can think of at least 10-20 errors which are fairly descriptive but still confusing. Eg: "commands are of wrong type" = plugin.yml commands area fucked up. If a phrase is found, the bot should provide a response. If not, ignore. I am happy to help build the bank of phrases to check for -> responses.

Here's an example: (obviously it would look better than this)
image
A fix would only be provided if one can be found. If not, it can still display them the error and line!

How could you do this differently

No response

Anything else?

No response

@sttephen sttephen added enhancement New feature or request low priority labels Dec 20, 2022
@joshbker
Copy link
Member

I personally think we should not create technical debt creating a custom system that simply formats the error nicely, and instead we should look at OpenAI integration, using a text model to properly explain the error and a fix. We've all seen how powerful this is when pasting an error in, think it would be a great addition and solves this issue

@sttephen
Copy link
Author

Absolutely the preferred option, but I do not believe OpenAI's API is free and I would rather not backdoor it.

@joshbker
Copy link
Member

Am happy to fund this, and hopefully at some point Discord revenue can take over the fee, I don't think it would be much more than £10-£20/month. I'll do a cost forecast and come back with it

@sttephen
Copy link
Author

Here is the language model pricing if it helps: https://openai.com/api/pricing/

It would be neat to start training a model. However, I cannot ask you to fund this if you are not getting anything in return.

The difficult task is actually limiting abuse as each request costs X cent. There are several ways we can do this, but we would need to implement a way which keeps costs low.

@Devous If you find it to be viable, please create an issue for it and I'll drop this. OpenAI integration is preferred but not sure if it is worth it when we can provide similar support for free (there is not an error in Spigot I haven't seen).

@Aethonx
Copy link
Contributor

Aethonx commented Dec 20, 2022

I think sending the user with a message about how to understand and read the stack trace is going to be a lot more beneficial then just extracting all the information for them.

@sttephen
Copy link
Author

sttephen commented Dec 20, 2022

I agree. But support tickets are supposed to be convenient. Before you even learn a drop of Spigot, there is a video on how to read stacktraces. If people have not watched this, they are not going to read and attempt to understand text on how to do it. There is nothing wrong with providing some help - after all, that's what the "help" channel is for.

@joshbker
Copy link
Member

Here is the language model pricing if it helps: https://openai.com/api/pricing/

It would be neat to start training a model. However, I cannot ask you to fund this if you are not getting anything in return.

The difficult task is actually limiting abuse as each request costs X cent. There are several ways we can do this, but we would need to implement a way which keeps costs low.

@Devous If you find it to be viable, please create an issue for it and I'll drop this. OpenAI integration is preferred but not sure if it is worth it when we can provide similar support for free (there is not an error in Spigot I haven't seen).

Sadly, I think as cool as it would be because how great the technology is, you may be right that it's just not really feasible to have an outgoing on it when we can do it for free, if we're not going to find a great way to utilise this AI elsewhere then maybe we should just hold off and innovate down the line?

@sttephen
Copy link
Author

Here is the language model pricing if it helps: https://openai.com/api/pricing/
It would be neat to start training a model. However, I cannot ask you to fund this if you are not getting anything in return.
The difficult task is actually limiting abuse as each request costs X cent. There are several ways we can do this, but we would need to implement a way which keeps costs low.
@Devous If you find it to be viable, please create an issue for it and I'll drop this. OpenAI integration is preferred but not sure if it is worth it when we can provide similar support for free (there is not an error in Spigot I haven't seen).

Sadly, I think as cool as it would be because how great the technology is, you may be right that it's just not really feasible to have an outgoing on it when we can do it for free, if we're not going to find a great way to utilise this AI elsewhere then maybe we should just hold off and innovate down the line?

I'm guessing you looked at the prices!

But yes, I think when the Discord is self-sustainable and we finally get access to that damned feature we will be able to justify this. There is no harm in waiting, it will still be there for us, just even better.

@joshbker
Copy link
Member

Here is the language model pricing if it helps: https://openai.com/api/pricing/
It would be neat to start training a model. However, I cannot ask you to fund this if you are not getting anything in return.
The difficult task is actually limiting abuse as each request costs X cent. There are several ways we can do this, but we would need to implement a way which keeps costs low.
@Devous If you find it to be viable, please create an issue for it and I'll drop this. OpenAI integration is preferred but not sure if it is worth it when we can provide similar support for free (there is not an error in Spigot I haven't seen).

Sadly, I think as cool as it would be because how great the technology is, you may be right that it's just not really feasible to have an outgoing on it when we can do it for free, if we're not going to find a great way to utilise this AI elsewhere then maybe we should just hold off and innovate down the line?

I'm guessing you looked at the prices!

But yes, I think when the Discord is self-sustainable and we finally get access to that damned feature we will be able to justify this. There is no harm in waiting, it will still be there for us, just even better.

Yeah, unfortunately the nature of stack traces is quite large, like 100-250 odd words per, which with OpenAI's word/token payment structure soon adds up. Assuming an error is 250 words, 3 errors is about 1,000 tokens, and on Davinci that's $0.02, or $0.0066667(ish)/error. If we're looking at say 20 errors a day, that's only like $4 a month, but I fear we would see a lot more than 250 words in stack traces quite often, and we would also get a lot more than 20 a day once people start realising the feature exists.

I suppose it's not as much down to the money, more just the time and effort, and I think I'm just driven for it because it's new and exciting rather than needed and feasible.

Maybe when we get this Discord feature we can implement OpenAI integration as a premium feature, that is funded by revenue from their subscription, would be a neat incentive.

@Nuckerr
Copy link
Contributor

Nuckerr commented Dec 20, 2022

Love the idea, however surely support is redundant if we just have chat gpt respond. There is no use for support because the times gpt fails can easily be managed by a small team.

EDIT by Moderator: merged posts, please use the edit button instead of double posting.

Maybe using gpt somehow but when to utilise it is the question

@sttephen
Copy link
Author

@Nuckerr I think we decided that OpenAI is not the solution, too expensive to justify. I would listen to my original ticket. Suggestions are very welcome.

@flytegg flytegg deleted a comment from Nuckerr Dec 20, 2022
@MLGPenguin
Copy link
Member

MLGPenguin commented Dec 21, 2022

I started making something like this a while ago that uses regex to automatically find the line and class from an error- Perhaps with a bit of manual work it can be adapted into what you're looking for?
error
refined

@joshbker
Copy link
Member

I started making something like this a while ago that uses regex to automatically find the line and class from an error- Perhaps with a bit of manual work it can be adapted into what you're looking for? error refined

Sounds good, if you're happy to, go for it!

@Nuckerr
Copy link
Contributor

Nuckerr commented Jan 10, 2023

@MLGPenguin would you like to remain assigned to this issue?

@MLGPenguin
Copy link
Member

@MLGPenguin would you like to remain assigned to this issue?

I'm not really getting very far 😅
You can unassign me and if I make any decent breakthroughs I'll let get you to reassign me. For now I think the way I'm doing it is a little flawed

@joshbker joshbker self-assigned this May 20, 2023
@Dawsson
Copy link
Member

Dawsson commented Oct 23, 2023

Any updates? I can implement this with the bot framework and our solutions command?

@stephendotgg
Copy link
Member

@Dawsson seems like a dead isssue id go for it

@joshbker joshbker assigned Dawsson and unassigned joshbker Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

7 participants