Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
4 changes: 1 addition & 3 deletions discoveryengine/answer_query_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# NOTE: This snippet has been partially generated by `gemini-1.5-pro-001`

# [START genappbuilder_answer_query]
from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -71,7 +69,7 @@ def answer_query_sample(
ignore_non_answer_seeking_query=False, # Optional: Ignore non-answer seeking query
ignore_low_relevant_content=False, # Optional: Return fallback answer when content is not relevant
model_spec=discoveryengine.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec(
model_version="gemini-1.5-flash-001/answer_gen/v2", # Optional: Model to use for answer generation
model_version="gemini-2.0-flash-001/answer_gen/v2", # Optional: Model to use for answer generation
),
prompt_spec=discoveryengine.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec(
preamble="Give a detailed answer.", # Optional: Natural language instructions for customizing the answer.
Expand Down
2 changes: 0 additions & 2 deletions discoveryengine/session_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# NOTE: This snippet has been partially generated by `gemini-1.5-pro-001`

# [START genappbuilder_create_session]
from google.cloud import discoveryengine_v1 as discoveryengine
Expand Down
65 changes: 0 additions & 65 deletions genai/content_cache/contentcache_create_with_txt_gcs_pdf.py

This file was deleted.

35 changes: 0 additions & 35 deletions genai/content_cache/contentcache_delete.py

This file was deleted.

42 changes: 0 additions & 42 deletions genai/content_cache/contentcache_list.py

This file was deleted.

59 changes: 0 additions & 59 deletions genai/content_cache/contentcache_update.py

This file was deleted.

42 changes: 0 additions & 42 deletions genai/content_cache/contentcache_use_with_txt.py

This file was deleted.

42 changes: 0 additions & 42 deletions genai/content_cache/noxfile_config.py

This file was deleted.

49 changes: 0 additions & 49 deletions genai/content_cache/test_content_cache_examples.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def batch_predict_gemini_createjob(output_uri: str) -> str:

# Submit a batch prediction job with Gemini model
batch_prediction_job = BatchPredictionJob.submit(
source_model="gemini-1.5-flash-002",
source_model="gemini-2.0-flash-001",
input_dataset=input_uri,
output_uri_prefix=output_uri,
)
Expand Down
2 changes: 1 addition & 1 deletion generative_ai/batch_predict/gemini_batch_predict_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def batch_predict_gemini_createjob(output_uri: str) -> str:

# Submit a batch prediction job with Gemini model
batch_prediction_job = BatchPredictionJob.submit(
source_model="gemini-1.5-flash-002",
source_model="gemini-2.0-flash-001",
input_dataset=input_uri,
output_uri_prefix=output_uri,
)
Expand Down
Loading