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

Add context caching quickstart #213

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

markmcd
Copy link
Member

@markmcd markmcd commented Jun 18, 2024

I used the content from the Apollo 11 example as it is quick to upload & start using (vs a video which needs a wait loop).

This covers cache setup, management & lifecycle, plus demos how to use both chat and generate_content, and shows some token accounting.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:quickstarts Issues/PR referencing quickstarts folder labels Jun 18, 2024
@random-forests random-forests merged commit 51b243d into google-gemini:main Jun 18, 2024
4 checks passed
@random-forests
Copy link
Member

Thank you! This is great. I made minor changes to the prompts (I didn't tell the model it was analyzing a nasa transcript in the SI to make the task more challenging).

@markmcd markmcd deleted the caching branch June 19, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:quickstarts Issues/PR referencing quickstarts folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants