Skip to content

Commit 4998c1a

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Clean up unused EmbeddingModelConfig.
PiperOrigin-RevId: 731061492
1 parent f218d1c commit 4998c1a

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

vertexai/rag/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
)
4040
from vertexai.rag.utils.resources import (
4141
ChunkingConfig,
42-
EmbeddingModelConfig,
4342
Filter,
4443
JiraQuery,
4544
JiraSource,
@@ -63,7 +62,6 @@
6362

6463
__all__ = (
6564
"ChunkingConfig",
66-
"EmbeddingModelConfig",
6765
"Filter",
6866
"JiraQuery",
6967
"JiraSource",

vertexai/rag/utils/resources.py

-32
Original file line numberDiff line numberDiff line change
@@ -78,38 +78,6 @@ class RagEmbeddingModelConfig:
7878
vertex_prediction_endpoint: Optional[VertexPredictionEndpoint] = None
7979

8080

81-
@dataclasses.dataclass
82-
class EmbeddingModelConfig:
83-
"""EmbeddingModelConfig.
84-
85-
The representation of the embedding model config. Users input a 1P embedding
86-
model as a Publisher model resource, or a 1P fine tuned embedding model
87-
as an Endpoint resource.
88-
89-
Attributes:
90-
publisher_model: 1P publisher model resource name. Format:
91-
``publishers/google/models/{model}`` or
92-
``projects/{project}/locations/{location}/publishers/google/models/{model}``
93-
endpoint: 1P fine tuned embedding model resource name. Format:
94-
``endpoints/{endpoint}`` or
95-
``projects/{project}/locations/{location}/endpoints/{endpoint}``.
96-
model:
97-
Output only. The resource name of the model that is deployed
98-
on the endpoint. Present only when the endpoint is not a
99-
publisher model. Pattern:
100-
``projects/{project}/locations/{location}/models/{model}``
101-
model_version_id:
102-
Output only. Version ID of the model that is
103-
deployed on the endpoint. Present only when the
104-
endpoint is not a publisher model.
105-
"""
106-
107-
publisher_model: Optional[str] = None
108-
endpoint: Optional[str] = None
109-
model: Optional[str] = None
110-
model_version_id: Optional[str] = None
111-
112-
11381
@dataclasses.dataclass
11482
class Weaviate:
11583
"""Weaviate.

0 commit comments

Comments
 (0)