|
17 | 17 |
|
18 | 18 |
|
19 | 19 | from google.cloud import aiplatform |
20 | | -from google.cloud.aiplatform_v1beta1 import ( |
| 20 | +from google.cloud.aiplatform_v1beta1.types import ( |
21 | 21 | GoogleDriveSource, |
22 | 22 | ImportRagFilesConfig, |
23 | 23 | ImportRagFilesRequest, |
24 | 24 | ImportRagFilesResponse, |
25 | 25 | JiraSource as GapicJiraSource, |
26 | 26 | RagContexts, |
27 | 27 | RagCorpus as GapicRagCorpus, |
| 28 | + RagEmbeddingModelConfig as GapicRagEmbeddingModelConfig, |
28 | 29 | RagEngineConfig as GapicRagEngineConfig, |
29 | 30 | RagFileChunkingConfig, |
30 | 31 | RagFileParsingConfig, |
|
36 | 37 | SharePointSources as GapicSharePointSources, |
37 | 38 | SlackSource as GapicSlackSource, |
38 | 39 | VertexAiSearchConfig as GapicVertexAiSearchConfig, |
| 40 | + api_auth, |
| 41 | + EncryptionSpec, |
39 | 42 | ) |
40 | | -from google.cloud.aiplatform_v1beta1.types import api_auth |
41 | | -from google.cloud.aiplatform_v1beta1.types import EncryptionSpec |
42 | 43 | from vertexai.preview.rag import ( |
43 | 44 | ANN, |
44 | 45 | Basic, |
|
137 | 138 | name=TEST_RAG_CORPUS_RESOURCE_NAME, |
138 | 139 | display_name=TEST_CORPUS_DISPLAY_NAME, |
139 | 140 | description=TEST_CORPUS_DISCRIPTION, |
140 | | - vector_db_config=GapicRagVectorDbConfig( |
141 | | - rag_embedding_model_config=GapicRagVectorDbConfig.RagEmbeddingModelConfig( |
142 | | - vertex_prediction_endpoint=GapicRagVectorDbConfig.RagEmbeddingModelConfig.VertexPredictionEndpoint( |
143 | | - endpoint="projects/{}/locations/{}/publishers/google/models/textembedding-gecko".format( |
144 | | - TEST_PROJECT, TEST_REGION |
145 | | - ) |
| 141 | + rag_embedding_model_config=GapicRagEmbeddingModelConfig( |
| 142 | + vertex_prediction_endpoint=GapicRagEmbeddingModelConfig.VertexPredictionEndpoint( |
| 143 | + endpoint="projects/{}/locations/{}/publishers/google/models/textembedding-gecko".format( |
| 144 | + TEST_PROJECT, TEST_REGION |
146 | 145 | ) |
147 | 146 | ) |
148 | 147 | ), |
|
0 commit comments