Skip to content

Commit

Permalink
Fixes for typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
nick863 committed Nov 7, 2024
1 parent 506567a commit e3000e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,22 @@ model VectorStoreStaticChunkingStrategyResponse
static: VectorStoreStaticChunkingStrategyOptions;
}

/** Type of vector storage configuration. */
/** Type of vector storage asset. Asset type may be a uri_asset, in this case it should contain asset URI ID,
* in the case of id_asset it should contain the data ID.
*/
union VectorStoreDataSourceAssetType {
uri_asset: "uri_asset",
id_asset: "id_asset"
}

/**
* The structure, containing Azure asset ID and the asset type of the file used as a data source
* The structure, containing Azure asset URI path and the asset type of the file used as a data source
* the enterprise file search.
*/
model VectorStoreDataSource {
/** Asset URI. */
@encodedName("application/json", "uri")
storageUri: string;
assetIdentifier: string;

/** The asset type **/
@encodedName("application/json", "type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ op createVectorStoreFile is Azure.Core.Foundations.Operation<
@encodedName("application/json", "file_id")
fileId?: string;

/** The data sorces to be used. This option is mutually exclusive with fileId. */
/** The data sources to be used. This option is mutually exclusive with fileId. */
@doc("Azure asset ID.")
@encodedName("application/json", "data_sources")
dataSources?: VectorStoreDataSource[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ model VectorStoreOptions {
/** The name of the vector store. */
name?: string;

/** The vector store configuration, used when vector store is created from Azure asset ID. */
/** The vector store configuration, used when vector store is created from Azure asset URIs. */
@encodedName("application/json", "configuration")
storeConfiguration?: VectorStoreConfiguration;

Expand Down

0 comments on commit e3000e8

Please sign in to comment.