Skip to content

Commit

Permalink
Merge branch 'main' into release-please--branches--main
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycee-li authored Oct 9, 2024
2 parents ceb9dbf + 72b76d8 commit 96fb037
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions vertexai/preview/rag/utils/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ class Weaviate:
``projects/{project}/secrets/{secret}/versions/{version}``
"""

weaviate_http_endpoint: str
collection_name: str
api_key: str
weaviate_http_endpoint: Optional[str] = None
collection_name: Optional[str] = None
api_key: Optional[str] = None


@dataclasses.dataclass
Expand All @@ -95,7 +95,7 @@ class VertexFeatureStore:
{feature_online_store}/featureViews/{feature_view}``
"""

resource_name: str
resource_name: Optional[str] = None


@dataclasses.dataclass
Expand All @@ -111,8 +111,8 @@ class VertexVectorSearch:
``projects/{project}/locations/{location}/indexes/{index}``
"""

index_endpoint: str
index: str
index_endpoint: Optional[str] = None
index: Optional[str] = None


@dataclasses.dataclass
Expand All @@ -130,8 +130,8 @@ class Pinecone:
``projects/{project}/secrets/{secret}/versions/{version}``
"""

index_name: str
api_key: str
index_name: Optional[str] = None
api_key: Optional[str] = None


@dataclasses.dataclass
Expand All @@ -152,7 +152,7 @@ class RagCorpus:
description: Optional[str] = None
embedding_model_config: Optional[EmbeddingModelConfig] = None
vector_db: Optional[
Union[Weaviate, VertexFeatureStore, VertexVectorSearch, Pinecone]
Union[Weaviate, VertexFeatureStore, VertexVectorSearch, Pinecone, RagManagedDb]
] = None


Expand Down

0 comments on commit 96fb037

Please sign in to comment.