Skip to content

Commit d3ae6fa

Browse files
yyyu-googlecopybara-github
authored andcommitted
feat: migrate rag to agentplatform
PiperOrigin-RevId: 909671067
1 parent 124e54d commit d3ae6fa

23 files changed

Lines changed: 7992 additions & 759 deletions

agentplatform/preview/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""The agentplatform.preview module."""
15+
"""The agentplatform.preview module."""
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
from agentplatform.preview.rag.rag_data import (
16+
batch_create_data_schemas,
17+
batch_create_metadata,
18+
batch_delete_data_schemas,
19+
batch_delete_metadata,
20+
create_corpus,
21+
delete_corpus,
22+
delete_file,
23+
get_corpus,
24+
get_file,
25+
get_rag_engine_config,
26+
import_files,
27+
import_files_async,
28+
list_corpora,
29+
list_data_schemas,
30+
list_files,
31+
list_metadata,
32+
update_corpus,
33+
update_metadata,
34+
update_rag_engine_config,
35+
upload_file,
36+
)
37+
from agentplatform.preview.rag.rag_retrieval import (
38+
ask_contexts,
39+
async_retrieve_contexts,
40+
retrieval_query,
41+
)
42+
from agentplatform.preview.rag.rag_store import (
43+
Retrieval,
44+
VertexRagStore,
45+
)
46+
from agentplatform.preview.rag.utils.resources import (
47+
ANN,
48+
Basic,
49+
ChunkingConfig,
50+
DocumentCorpus,
51+
EmbeddingModelConfig,
52+
Filter,
53+
HybridSearch,
54+
JiraQuery,
55+
JiraSource,
56+
KNN,
57+
LayoutParserConfig,
58+
LlmParserConfig,
59+
LlmRanker,
60+
MemoryCorpus,
61+
MetadataValue,
62+
Pinecone,
63+
RagCorpus,
64+
RagCorpusTypeConfig,
65+
RagDataSchema,
66+
RagEmbeddingModelConfig,
67+
RagEngineConfig,
68+
RagFile,
69+
RagManagedDb,
70+
RagManagedDbConfig,
71+
RagManagedVertexVectorSearch,
72+
RagMetadata,
73+
RagMetadataSchemaDetails,
74+
RagResource,
75+
RagRetrievalConfig,
76+
RagVectorDbConfig,
77+
RankService,
78+
Ranking,
79+
Scaled,
80+
Serverless,
81+
SharePointSource,
82+
SharePointSources,
83+
SlackChannel,
84+
SlackChannelsSource,
85+
Spanner,
86+
TransformationConfig,
87+
Unprovisioned,
88+
UserSpecifiedMetadata,
89+
VertexAiSearchConfig,
90+
VertexFeatureStore,
91+
VertexPredictionEndpoint,
92+
VertexVectorSearch,
93+
Weaviate,
94+
)
95+
96+
__all__ = (
97+
"ANN",
98+
"Basic",
99+
"ChunkingConfig",
100+
"DocumentCorpus",
101+
"EmbeddingModelConfig",
102+
"Filter",
103+
"HybridSearch",
104+
"JiraQuery",
105+
"JiraSource",
106+
"KNN",
107+
"LayoutParserConfig",
108+
"LlmParserConfig",
109+
"LlmRanker",
110+
"MemoryCorpus",
111+
"MetadataValue",
112+
"Pinecone",
113+
"RagEngineConfig",
114+
"RagCorpus",
115+
"RagCorpusTypeConfig",
116+
"RagDataSchema",
117+
"RagEmbeddingModelConfig",
118+
"RagFile",
119+
"RagManagedDb",
120+
"RagManagedDbConfig",
121+
"RagManagedVertexVectorSearch",
122+
"RagMetadata",
123+
"RagMetadataSchemaDetails",
124+
"RagResource",
125+
"RagRetrievalConfig",
126+
"RagVectorDbConfig",
127+
"Ranking",
128+
"RankService",
129+
"Retrieval",
130+
"Scaled",
131+
"Serverless",
132+
"SharePointSource",
133+
"SharePointSources",
134+
"SlackChannel",
135+
"SlackChannelsSource",
136+
"Spanner",
137+
"TransformationConfig",
138+
"Unprovisioned",
139+
"UserSpecifiedMetadata",
140+
"VertexAiSearchConfig",
141+
"VertexFeatureStore",
142+
"VertexPredictionEndpoint",
143+
"VertexRagStore",
144+
"VertexVectorSearch",
145+
"Weaviate",
146+
"ask_contexts",
147+
"batch_create_data_schemas",
148+
"batch_create_metadata",
149+
"batch_delete_data_schemas",
150+
"batch_delete_metadata",
151+
"create_corpus",
152+
"delete_corpus",
153+
"delete_file",
154+
"get_corpus",
155+
"get_file",
156+
"import_files",
157+
"import_files_async",
158+
"list_corpora",
159+
"list_data_schemas",
160+
"list_files",
161+
"list_metadata",
162+
"retrieval_query",
163+
"async_retrieve_contexts",
164+
"upload_file",
165+
"update_corpus",
166+
"update_metadata",
167+
"update_rag_engine_config",
168+
"get_rag_engine_config",
169+
)

0 commit comments

Comments
 (0)