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

Prompt engineering #2

Open
aantn opened this issue Jan 12, 2023 · 5 comments
Open

Prompt engineering #2

aantn opened this issue Jan 12, 2023 · 5 comments
Labels
good first issue Good for newcomers

Comments

@aantn
Copy link
Contributor

aantn commented Jan 12, 2023

Copying over this idea from the reddit post :)

If anyone is curious, you can change the prompt on line 77 to tweak the answers.

For example, maybe you'll get better answers by including pod logs:

search_term=f"How to solve {alert_name} on Kubernetes when the log is {alert.pod.get_logs()}?"

Or maybe you'd prefer an answer from Captain Jack Sparrow:

search_term=f"Explain like a pirate how to solve {alert_name} on Kubernetes?"

PRs welcome!

@aantn aantn added the good first issue Good for newcomers label Jan 12, 2023
@anushkabishnoi
Copy link

Hello, this is my first experience with open source contributions. Would really appreciate it if you explained exactly what is needed to be done.

I would love to work on this issue.

Thanks in advance! :)

@aantn
Copy link
Contributor Author

aantn commented Jan 18, 2023

I'd suggest getting started with the tutorial on writing Robusta actions. Then start to modify the prompt in the place mentioned above. See if you can get the bot to give different responses.

After that, ping me and we'll discuss next steps.

@Pawank06
Copy link

Pawank06 commented Feb 1, 2023

Hey @aantn did we need to change line 77
from this:
search_term=f"How to solve {alert_name} on Kubernetes when the log is {alert.pod.get_logs()}?"
to this:
search_term=f"Explain like a pirate how to solve {alert_name} on Kubernetes?"

please reply.

@aantn
Copy link
Contributor Author

aantn commented Feb 1, 2023

Yep, something like that! But it should be an option, based on the params object.

@Islam-Programmer
Copy link

Hello aantn!, i dont even know what is this library, so please i want to learn what is this and do i need to learn it.
if its useful i want to learn, can you tell me how and from where can i learn that

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

No branches or pull requests

4 participants