Skip to content

Update document_search.ipynb #395

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

Merged
merged 3 commits into from
May 1, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions site/en/gemini-api/tutorials/document_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"source": [
"Key Point: Next, you will choose a model. Any embedding model will work for this tutorial, but for real applications it's important to choose a specific model and stick with it. The outputs of different models are not compatible with each other.\n",
"\n",
"**Note**: At this time, the Gemini API is [only available in certain regions](https://developers.generativeai.google/available_regions)."
"**Note**: At this time, the Gemini API is [only available in certain regions](https://ai.google.dev/gemini-api/docs/available-regions)."
]
},
{
Expand Down Expand Up @@ -1191,7 +1191,7 @@
},
"outputs": [],
"source": [
"model = genai.GenerativeModel('gemini-ultra')\n",
"model = genai.GenerativeModel('gemini-1.5-pro-latest')\n",
"answer = model.generate_content(prompt)"
]
},
Expand Down Expand Up @@ -1227,8 +1227,7 @@
},
"source": [
"## Next steps\n",
"\n",
"To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python)."
"\n"To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python)."
]
}
],
Expand Down