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

MakerSuite does not work -- instructions ignored. #96

Closed
dosstx opened this issue Aug 4, 2023 · 2 comments
Closed

MakerSuite does not work -- instructions ignored. #96

dosstx opened this issue Aug 4, 2023 · 2 comments
Labels
type:help Support-related issues

Comments

@dosstx
Copy link

dosstx commented Aug 4, 2023

Hello, I am evaluating Google Palm 2 API and I am using MakerSuite for testing. I must be doing something wrong, but I am not understanding how the "context" prompt input works in MakerSuite. I simply write the following context: "Do not talk about baseball." and also provided an example user/model input stating not to talk about baseball, but when I run the test and ask "What is baseball?", the model responds back talking about baseball:

image

So, what am I doing wrong?

@keertk keertk added category:makersuite type:help Support-related issues labels Aug 23, 2023
@keertk keertk added the status:triaged Issue/PR triaged to the corresponding sub-team label Sep 1, 2023
@MarkDaoust
Copy link
Member

MarkDaoust commented Jan 11, 2024

I don't think you're doing anything wrong. System instructions aren't strictly enforced, the model owners know this should be improved. This may be better with the Gemini models, but I don't have data on this.

@github-actions github-actions bot removed the status:triaged Issue/PR triaged to the corresponding sub-team label Jan 11, 2024
@MarkDaoust
Copy link
Member

Quick test with the gemini model:

response = model.generate_content(
"""Important: You must not mention baseball in your response.

What are some popular sports in the united states? Name a few where you hit a ball with a stick of some kind.""")

response.text
- Golf: Players use various clubs to hit balls into a series of holes on a course, with the fewest strokes winning.
- Hockey: Players use sticks to shoot a puck into a net, while other players try to prevent them from doing so.
- Tennis: Players use rackets to hit a ball over a net, with points awarded for successful hits and faults for missed hits or out-of-bounds shots.
- Lacrosse: Players use long-handled sticks with netted ends to catch, carry, and throw a ball, aiming to score by throwing it into a goal.
- Cricket: Players use wooden bats to hit a hard leather ball bowled by an opponent, with runs scored by running between wickets or hitting the ball out of bounds.

and

response = model.generate_content(
"""Important: You must not mention baseball in your response.

How do you play baseball?""")

response.text
I cannot answer this question as I am not supposed to mention baseball in my responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:help Support-related issues
Projects
None yet
Development

No branches or pull requests

3 participants