-
Notifications
You must be signed in to change notification settings - Fork 98
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
Anthropic-specific prompts needed for classification and agent tasks #211
Comments
@dhirenmathur I'd like to contribute to this issue. Could you assigned this to me? Thanks! |
Gladly! Thank you and all the best! |
Hey @simin75simin what were your final findings? |
could not test comprehensively right now cause an issue in local repo reads: 'Repo' object has no method 'get_contents' it seems there are two packages used: gitPython (import git) and pyGithub (import github) and pyGithub has get_contents for production mode, which grabs the repo online. trying to install production mode for now. @dhirenmathur |
@simin75simin understood, we didn't face this bug when we were testing it that day correct? Did you try to test something different? Could you please provide steps to reproduce and open an issue for it? Thanks! |
it seemed this bug is only present for anthropic. still trying to pin down how exactly it happened. maybe it's some network issue on my local PC that uses a proxy & WSL 2. but this does not look likely because i can use litellm & anthropic from python shell in the same terminal. maybe something else. on my PC this error was triggered by going into the postgres docker container and added the preferred AI for the defaultuser to be 'anthropic' and followed readme. @dhirenmathur |
If you remove the preferred provider from db it works end to end like we tried previously? |
yes, and if i change it to openai it also works, but if i change it to anthropic it gives UNEXPECTED_EOF_WHILE_READING and even though sometimes the call to the AI works Anthropic gives responses suggesting it cannot access context i.e. the repo. no problem with openai though. |
And to confirm, you used the API to set the provider in the database? (To make sure that the format is correct in the database) |
no but i can try also if it's openai it works, like UPDATE user_preferences
SET preferences = '{"llm_provider": "openai"}'
WHERE user_id = 'defaultuser'; but if i change the word openai to anthropic it throws UNEXPECTED_EOF_WHILE_READING |
so i tried using API to set provider in database but same error. i got a 200 from Anthropic but then started getting one UNEXPECTED_EOF_WHILE_READING. looking into this. |
looks like some format conversion mistake with Pydantic with PydanticOutputParser |
Issue Summary
While PR #203 fixed basic Anthropic integration, the current prompts are not optimized for Anthropic models. We need to update classification prompts and agent task descriptions to improve performance with Anthropic models while work continues on dynamic prompt injection (#189).
Current Status
Action Items
Related Issues/PRs
Additional Context
This is an interim solution while the more comprehensive dynamic prompt injection system is being developed. Once #189 is completed, these Anthropic-specific prompts can be integrated into the dynamic system.
The text was updated successfully, but these errors were encountered: