Skip to content

Commit 16c3fb6

Browse files
darshanmehta17copybara-github
authored andcommitted
docs: Update gemini model in docstrings for RAG Engine
PiperOrigin-RevId: 998896283
1 parent 527b6dc commit 16c3fb6

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎agentplatform/rag/rag_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def add_inline_citations_and_references(
10211021
)
10221022
10231023
rag_model = GenerativeModel(
1024-
model_name="gemini-2.5-pro-preview-05-06", tools=[rag_retrieval_tool]
1024+
model_name="gemini-3.8-flash", tools=[rag_retrieval_tool]
10251025
)
10261026
response = rag_model.generate_content("Why is the sky blue?")
10271027

‎agentplatform/rag/rag_retrieval.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def retrieval_query(
4646
vector_distance_threshold=0.5
4747
),
4848
ranking=agentplatform.rag.Ranking(
49-
llm_ranker=rag.LlmRanker(
50-
model_name="gemini-2.5-flash"
49+
llm_ranker=agentplatform.rag.LlmRanker(
50+
model_name="gemini-3.8-flash"
5151
)
5252
)
5353
)

‎agentplatform/rag/rag_store.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
),
6262
ranking=vertex.rag.Ranking(
6363
llm_ranker=agentplatform.rag.LlmRanker(
64-
model_name="gemini-1.5-flash-002"
64+
model_name="gemini-3.8-flash"
6565
)
6666
)
6767
)

‎vertexai/rag/rag_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def add_inline_citations_and_references(
10451045
)
10461046
10471047
rag_model = GenerativeModel(
1048-
model_name="gemini-2.5-pro-preview-05-06", tools=[rag_retrieval_tool]
1048+
model_name="gemini-3.8-flash", tools=[rag_retrieval_tool]
10491049
)
10501050
response = rag_model.generate_content("Why is the sky blue?")
10511051

‎vertexai/rag/rag_retrieval.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def retrieval_query(
4949
),
5050
ranking=vertex.rag.Ranking(
5151
llm_ranker=vertexai.rag.LlmRanker(
52-
model_name="gemini-1.5-flash-002"
52+
model_name="gemini-3.8-flash"
5353
)
5454
)
5555
)

‎vertexai/rag/rag_store.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
),
6565
ranking=vertex.rag.Ranking(
6666
llm_ranker=vertexai.rag.LlmRanker(
67-
model_name="gemini-1.5-flash-002"
67+
model_name="gemini-3.8-flash"
6868
)
6969
)
7070
)

0 commit comments

Comments
 (0)