Skip to content

Issue with Custom Skills in PandasAI when using OpenAI API #1419

Answered by dosubot bot
juancolonna asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, @juancolonna! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together!

The issue you're experiencing with the custom skill being ignored might be due to how the PandasAI agent determines which code to execute. The agent uses the function's docstring to provide context to the model, which influences the decision on when to use the custom skill. If the model's interpretation of the query doesn't align with the skill's docstring, it might not trigger the custom skill as expected [1][2].

Here are a few steps you can take to troubleshoot and potentially resolve the issue:

  1. Check the Docstring: Ensure that the docstring of your plot_salaries func…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@juancolonna
Comment options

@dosubot
Comment options

Answer selected by juancolonna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant