gen_ai_hub.document_grounding.models packageΒΆ

Models subpackage for Document Grounding API.

This subpackage contains Pydantic model definitions for all Document Grounding API requests and responses. Models are organized by API domain:

  • pipeline: Models for Pipeline API (document vectorization pipelines)

  • retrieval: Models for Retrieval API (content retrieval from repositories)

  • vector: Models for Vector API (vector collection management and search)

These models provide type-safe data structures for interacting with the Document Grounding APIs and ensure proper validation of request/response data.

class gen_ai_hub.document_grounding.models.MSSharePointPipelineCreateRequest(*, type: Literal['MSSharePoint'] = 'MSSharePoint', configuration: MSSharePointConfiguration, metadata: MetaData | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['MSSharePoint']ΒΆ
configuration: MSSharePointConfigurationΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.S3PipelineCreateRequest(*, type: Literal['S3'] = 'S3', configuration: CommonConfiguration, metadata: MetaData | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['S3']ΒΆ
configuration: CommonConfigurationΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.SFTPPipelineCreateRequest(*, type: Literal['SFTP'] = 'SFTP', configuration: CommonConfiguration, metadata: MetaData | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['SFTP']ΒΆ
configuration: CommonConfigurationΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.SearchPipelineRequest(*, dataRepositoryMetadata: List[DataRepositoryMetadataItem])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

dataRepositoryMetadata: List[DataRepositoryMetadataItem]ΒΆ
class gen_ai_hub.document_grounding.models.DataRepositoryMetadataItem(*, key: str, value: List[str])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

key: strΒΆ
value: List[str]ΒΆ
class gen_ai_hub.document_grounding.models.CommonConfiguration(*, destination: str)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

destination: strΒΆ
class gen_ai_hub.document_grounding.models.MetaData(*, destination: str)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

destination: strΒΆ
class gen_ai_hub.document_grounding.models.MSSharePointConfiguration(*, destination: str, sharePoint: SharePointConfig)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

destination: strΒΆ
sharePoint: SharePointConfigΒΆ
class gen_ai_hub.document_grounding.models.SharePointConfig(*, site: SharePointSite)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

site: SharePointSiteΒΆ
class gen_ai_hub.document_grounding.models.SharePointSite(*, name: str, includePaths: List[str] | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: strΒΆ
includePaths: List[str] | NoneΒΆ
class gen_ai_hub.document_grounding.models.ManualPipelineTrigger(*, pipelineId: str, metadataOnly: bool | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pipelineId: strΒΆ
metadataOnly: bool | NoneΒΆ
class gen_ai_hub.document_grounding.models.PipelineIdResponse(*, pipelineId: str)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pipelineId: strΒΆ
class gen_ai_hub.document_grounding.models.GetPipelinesResponse(*, count: int | None, resources: List[Annotated[MSSharePointPipelineGetResponse | S3PipelineGetResponse | SFTPPipelineGetResponse, FieldInfo(annotation=NoneType, required=True, discriminator='type')]])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[Annotated[MSSharePointPipelineGetResponse | S3PipelineGetResponse | SFTPPipelineGetResponse, FieldInfo(annotation=NoneType, required=True, discriminator='type')]]ΒΆ
class gen_ai_hub.document_grounding.models.GetPipelineStatusResponse(*, lastStarted: str | None, status: str | None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

lastStarted: str | NoneΒΆ
status: str | NoneΒΆ
class gen_ai_hub.document_grounding.models.PipelineExecution(*, id: str, status: PipelineExecutionStatus | None = None, createdAt: datetime | None = None, modifiedAt: datetime | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
status: PipelineExecutionStatus | NoneΒΆ
createdAt: datetime | NoneΒΆ
modifiedAt: datetime | NoneΒΆ
class gen_ai_hub.document_grounding.models.GetPipelineExecutionsResponse(*, count: int | None, resources: List[PipelineExecution])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[PipelineExecution]ΒΆ
class gen_ai_hub.document_grounding.models.Document(*, id: str, status: DocumentStatus | None = None, viewLocation: str | None = None, downloadLocation: str | None = None, absoluteUrl: str | None = None, title: str | None = None, metadataId: str | None = None, createdTimestamp: datetime | None = None, lastUpdatedTimestamp: datetime | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
status: DocumentStatus | NoneΒΆ
viewLocation: str | NoneΒΆ
downloadLocation: str | NoneΒΆ
absoluteUrl: str | NoneΒΆ
title: str | NoneΒΆ
metadataId: str | NoneΒΆ
createdTimestamp: datetime | NoneΒΆ
lastUpdatedTimestamp: datetime | NoneΒΆ
class gen_ai_hub.document_grounding.models.DocumentsStatusResponse(*, count: int | None, resources: List[Document])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[Document]ΒΆ
class gen_ai_hub.document_grounding.models.MSSharePointPipelineGetResponse(*, id: str, type: Literal['MSSharePoint'] = 'MSSharePoint', metadata: MetaData | None = None, configuration: MSSharePointConfigurationGetResponse)ΒΆ

Bases: BasePipelineResponse

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['MSSharePoint']ΒΆ
configuration: MSSharePointConfigurationGetResponseΒΆ
id: strΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.S3PipelineGetResponse(*, id: str, type: Literal['S3'] = 'S3', metadata: MetaData | None = None, configuration: CommonConfiguration)ΒΆ

Bases: BasePipelineResponse

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['S3']ΒΆ
configuration: CommonConfigurationΒΆ
id: strΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.SFTPPipelineGetResponse(*, id: str, type: Literal['SFTP'] = 'SFTP', metadata: MetaData | None = None, configuration: CommonConfiguration)ΒΆ

Bases: BasePipelineResponse

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['SFTP']ΒΆ
configuration: CommonConfigurationΒΆ
id: strΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.SearchPipelineData(*, pipelineId: str)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pipelineId: strΒΆ
class gen_ai_hub.document_grounding.models.SearchPipelinesResponse(*, count: int | None, resources: List[SearchPipelineData])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[SearchPipelineData]ΒΆ
class gen_ai_hub.document_grounding.models.PipelineExecutionStatus(*values)ΒΆ

Bases: str, Enum

NEW = 'NEW'ΒΆ
UNKNOWN = 'UNKNOWN'ΒΆ
INPROGRESS = 'INPROGRESS'ΒΆ
FINISHED = 'FINISHED'ΒΆ
FINISHED_WITH_ERRORS = 'FINISHEDWITHERRORS'ΒΆ
TIMEOUT = 'TIMEOUT'ΒΆ
class gen_ai_hub.document_grounding.models.DocumentStatus(*values)ΒΆ

Bases: str, Enum

TO_BE_PROCESSED = 'TO_BE_PROCESSED'ΒΆ
INDEXED = 'INDEXED'ΒΆ
REINDEXED = 'REINDEXED'ΒΆ
DEINDEXED = 'DEINDEXED'ΒΆ
FAILED = 'FAILED'ΒΆ
FAILED_TO_BE_RETRIED = 'FAILED_TO_BE_RETRIED'ΒΆ
TO_BE_SCHEDULED = 'TO_BE_SCHEDULED'ΒΆ
class gen_ai_hub.document_grounding.models.BasePipelineResponse(*, id: str, type: str, metadata: MetaData | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
type: strΒΆ
metadata: MetaData | NoneΒΆ
class gen_ai_hub.document_grounding.models.MSSharePointConfigurationGetResponse(*, destination: str, sharePoint: SharePointConfig)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

destination: strΒΆ
sharePoint: SharePointConfigΒΆ
class gen_ai_hub.document_grounding.models.RetrievalKeyValueListPair(*, key: str, value: List[str])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

key: strΒΆ
value: List[str]ΒΆ
class gen_ai_hub.document_grounding.models.RetrievalDocumentKeyValueListPair(*, key: str, value: List[str], matchMode: str | None)ΒΆ

Bases: RetrievalKeyValueListPair

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

matchMode: str | NoneΒΆ
key: strΒΆ
value: List[str]ΒΆ
class gen_ai_hub.document_grounding.models.RetrievalSearchDocumentKeyValueListPair(*, key: str, value: List[str], selectMode: List[str] | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

key: strΒΆ
value: List[str]ΒΆ
selectMode: List[str] | NoneΒΆ
class gen_ai_hub.document_grounding.models.RetrievalChunk(*, id: str, content: str, metadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalKeyValueListPair] | None = <factory>)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
content: strΒΆ
metadata: List[RetrievalKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.RetrievalDocument(*, id: str, metadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalDocumentKeyValueListPair] | None = <factory>, chunks: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalChunk])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
metadata: List[RetrievalDocumentKeyValueListPair] | NoneΒΆ
chunks: List[RetrievalChunk]ΒΆ
class gen_ai_hub.document_grounding.models.DataRepository(*, id: str, title: str, type: ~typing.Literal['vector', 'help.sap.com'] | str, metadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalKeyValueListPair] | None = <factory>)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
title: strΒΆ
type: Literal['vector', 'help.sap.com'] | strΒΆ
metadata: List[RetrievalKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.DataRepositoryWithDocuments(*, id: str, title: str, metadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalKeyValueListPair] | None = <factory>, documents: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalDocument])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
title: strΒΆ
metadata: List[RetrievalKeyValueListPair] | NoneΒΆ
documents: List[RetrievalDocument]ΒΆ
class gen_ai_hub.document_grounding.models.RetrievalSearchConfiguration(*, maxChunkCount: int | None = None, maxDocumentCount: int | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

maxChunkCount: int | NoneΒΆ
maxDocumentCount: int | NoneΒΆ
class gen_ai_hub.document_grounding.models.RetrievalSearchFilter(*, id: str, dataRepositoryType: ~typing.Literal['vector', 'help.sap.com'] | str, searchConfiguration: ~gen_ai_hub.document_grounding.models.retrieval.RetrievalSearchConfiguration | None = <factory>, dataRepositories: ~typing.List[str] | None = <factory>, dataRepositoryMetadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalKeyValueListPair] | None = <factory>, documentMetadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalSearchDocumentKeyValueListPair] | None = <factory>, chunkMetadata: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalKeyValueListPair] | None = <factory>)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
dataRepositoryType: Literal['vector', 'help.sap.com'] | strΒΆ
searchConfiguration: RetrievalSearchConfiguration | NoneΒΆ
dataRepositories: List[str] | NoneΒΆ
dataRepositoryMetadata: List[RetrievalKeyValueListPair] | NoneΒΆ
documentMetadata: List[RetrievalSearchDocumentKeyValueListPair] | NoneΒΆ
chunkMetadata: List[RetrievalKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.RetrievalSearchInput(*, query: str, filters: List[RetrievalSearchFilter])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

query: strΒΆ
filters: List[RetrievalSearchFilter]ΒΆ
class gen_ai_hub.document_grounding.models.RetrievalDataRepositorySearchResult(*, dataRepository: DataRepositoryWithDocuments)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

dataRepository: DataRepositoryWithDocumentsΒΆ
class gen_ai_hub.document_grounding.models.RetrievalPerFilterSearchResult(*, filterId: str, results: ~typing.List[~gen_ai_hub.document_grounding.models.retrieval.RetrievalDataRepositorySearchResult] = <factory>)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

filterId: strΒΆ
results: List[RetrievalDataRepositorySearchResult]ΒΆ
class gen_ai_hub.document_grounding.models.RetrievalPerFilterSearchResultError(*, message: str)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

message: strΒΆ
class gen_ai_hub.document_grounding.models.RetrievalPerFilterSearchResultWithError(*, filterId: str, error: RetrievalPerFilterSearchResultError)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

filterId: strΒΆ
error: RetrievalPerFilterSearchResultErrorΒΆ
class gen_ai_hub.document_grounding.models.RetrievalSearchResults(*, results: List[RetrievalPerFilterSearchResult | RetrievalPerFilterSearchResultWithError])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

results: List[RetrievalPerFilterSearchResult | RetrievalPerFilterSearchResultWithError]ΒΆ
class gen_ai_hub.document_grounding.models.DataRepositories(*, count: int | None = None, resources: List[DataRepository])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[DataRepository]ΒΆ
class gen_ai_hub.document_grounding.models.VectorKeyValueListPair(*, key: str, value: List[str])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

key: strΒΆ
value: List[str]ΒΆ
class gen_ai_hub.document_grounding.models.EmbeddingConfig(*, modelName: str | None = 'text-embedding-3-large')ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

modelName: str | NoneΒΆ
class gen_ai_hub.document_grounding.models.CollectionCreateRequest(*, title: str | None = None, embeddingConfig: EmbeddingConfig, metadata: List[VectorKeyValueListPair] | None = [])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

title: str | NoneΒΆ
embeddingConfig: EmbeddingConfigΒΆ
metadata: List[VectorKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.Collection(*, id: str, title: str | None = None, embeddingConfig: EmbeddingConfig, metadata: List[VectorKeyValueListPair] | None = [])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
title: str | NoneΒΆ
embeddingConfig: EmbeddingConfigΒΆ
metadata: List[VectorKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.CollectionsListResponse(*, count: int | None = None, resources: List[Collection])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[Collection]ΒΆ
class gen_ai_hub.document_grounding.models.TextOnlyBaseChunk(*, content: str, metadata: List[VectorKeyValueListPair] | None = [])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

content: strΒΆ
metadata: List[VectorKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.BaseDocument(*, chunks: List[TextOnlyBaseChunk], metadata: List[VectorKeyValueListPair])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

chunks: List[TextOnlyBaseChunk]ΒΆ
metadata: List[VectorKeyValueListPair]ΒΆ
class gen_ai_hub.document_grounding.models.DocumentWithoutChunks(*, id: str, metadata: List[VectorKeyValueListPair])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
metadata: List[VectorKeyValueListPair]ΒΆ
gen_ai_hub.document_grounding.models.VectorDocumentΒΆ

alias of Document

class gen_ai_hub.document_grounding.models.DocumentsCreateRequest(*, documents: List[BaseDocument])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

documents: List[BaseDocument]ΒΆ
class gen_ai_hub.document_grounding.models.DocumentsUpdateRequest(*, documents: List[Document])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

documents: List[Document]ΒΆ
class gen_ai_hub.document_grounding.models.DocumentsListResponse(*, documents: List[DocumentWithoutChunks])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

documents: List[DocumentWithoutChunks]ΒΆ
class gen_ai_hub.document_grounding.models.DocumentsResponse(*, count: int | None = None, resources: List[DocumentWithoutChunks])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

count: int | NoneΒΆ
resources: List[DocumentWithoutChunks]ΒΆ
class gen_ai_hub.document_grounding.models.CollectionCreatedResponse(*, collectionUrl: str, status: Literal['CREATED'] = 'CREATED')ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

collectionURL: strΒΆ
status: Literal['CREATED']ΒΆ
class gen_ai_hub.document_grounding.models.CollectionDeletedResponse(*, collectionUrl: str, status: Literal['DELETED'] = 'DELETED')ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

collectionURL: strΒΆ
status: Literal['DELETED']ΒΆ
class gen_ai_hub.document_grounding.models.CollectionPendingResponse(*, location: str, status: Literal['PENDING'] = 'PENDING')ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Location: strΒΆ
status: Literal['PENDING']ΒΆ
class gen_ai_hub.document_grounding.models.VectorSearchConfiguration(*, maxChunkCount: int | None = None, maxDocumentCount: int | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

maxChunkCount: int | NoneΒΆ
maxDocumentCount: int | NoneΒΆ
class gen_ai_hub.document_grounding.models.VectorSearchDocumentKeyValueListPair(*, key: str, value: List[str], selectMode: List[str] | None = None)ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

key: strΒΆ
value: List[str]ΒΆ
selectMode: List[str] | NoneΒΆ
class gen_ai_hub.document_grounding.models.VectorSearchFilter(*, id: str, collectionIds: List[str], configuration: VectorSearchConfiguration, collectionMetadata: List[VectorKeyValueListPair] | None = [], documentMetadata: List[VectorSearchDocumentKeyValueListPair] | None = [], chunkMetadata: List[VectorKeyValueListPair] | None = [])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
collectionIds: List[str]ΒΆ
configuration: VectorSearchConfigurationΒΆ
collectionMetadata: List[VectorKeyValueListPair] | NoneΒΆ
documentMetadata: List[VectorSearchDocumentKeyValueListPair] | NoneΒΆ
chunkMetadata: List[VectorKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.TextSearchRequest(*, query: str, filters: List[VectorSearchFilter])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

query: strΒΆ
filters: List[VectorSearchFilter]ΒΆ
class gen_ai_hub.document_grounding.models.VectorChunk(*, id: str, content: str, metadata: List[VectorKeyValueListPair] | None = [])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
content: strΒΆ
metadata: List[VectorKeyValueListPair] | NoneΒΆ
class gen_ai_hub.document_grounding.models.DocumentOutput(*, id: str, metadata: List[VectorKeyValueListPair] | None = [], chunks: List[VectorChunk])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
metadata: List[VectorKeyValueListPair] | NoneΒΆ
chunks: List[VectorChunk]ΒΆ
class gen_ai_hub.document_grounding.models.DocumentsChunk(*, id: str, title: str, metadata: List[VectorKeyValueListPair] | None = [], documents: List[DocumentOutput])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: strΒΆ
title: strΒΆ
metadata: List[VectorKeyValueListPair] | NoneΒΆ
documents: List[DocumentOutput]ΒΆ
class gen_ai_hub.document_grounding.models.VectorPerFilterSearchResult(*, filterId: str, results: List[DocumentsChunk])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

filterId: strΒΆ
results: List[DocumentsChunk]ΒΆ
class gen_ai_hub.document_grounding.models.VectorSearchResults(*, results: List[VectorPerFilterSearchResult])ΒΆ

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

results: List[VectorPerFilterSearchResult]ΒΆ

SubmodulesΒΆ