Skip to content

Commit b26ac55

Browse files
Merge pull request #2142 from solliancenet/sc-add-indexer-specific-settings-on-vector-store-form
Add indexer specific settings on vector store form
2 parents 2e72052 + ee730b3 commit b26ac55

File tree

6 files changed

+1038
-1006
lines changed

6 files changed

+1038
-1006
lines changed

src/ui/ManagementPortal/js/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,6 @@ export default {
890890
},
891891

892892
async createIndexingProfile(request): Promise<any> {
893-
console.log('createIndexingProfile', request);
894893
return await this.fetch(
895894
`/instances/${this.instanceId}/providers/FoundationaLLM.Vectorization/indexingProfiles/${request.name}?api-version=${this.apiVersion}`,
896895
{

src/ui/ManagementPortal/js/types.ts

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ export type ResourceProviderGetResult<T> = {
2929
};
3030

3131
export type ResourceProviderUpsertResult = {
32-
/**
33-
* The id of the object that was created or updated.
34-
*/
35-
objectId: string;
36-
37-
/**
38-
* A flag denoting whether the upserted resource already exists.
39-
*/
40-
resourceExists: boolean;
41-
42-
/**
43-
* Gets or sets the resource resulting from the upsert operation.
44-
* Each resource provider will decide whether to return the resource in the upsert result or not.
45-
*/
46-
resource?: any;
32+
/**
33+
* The id of the object that was created or updated.
34+
*/
35+
objectId: string;
36+
37+
/**
38+
* A flag denoting whether the upserted resource already exists.
39+
*/
40+
resourceExists: boolean;
41+
42+
/**
43+
* Gets or sets the resource resulting from the upsert operation.
44+
* Each resource provider will decide whether to return the resource in the upsert result or not.
45+
*/
46+
resource?: any;
4747
};
4848

4949
export type ResourceProviderActionResult = {
@@ -115,7 +115,7 @@ export type Agent = ResourceBase & {
115115
export type AgentAccessToken = ResourceBase & {
116116
id: string;
117117
active: boolean;
118-
}
118+
};
119119

120120
export type Prompt = ResourceBase & {
121121
object_id: string;
@@ -567,49 +567,49 @@ export function convertToAppConfigKeyVault(baseConfig: AppConfigUnion): AppConfi
567567
};
568568
}
569569

570-
export type APIEndpointConfiguration = ResourceBase & {
571-
type: string;
572-
category: APIEndpointCategory;
573-
subcategory?: APIEndpointSubcategory;
574-
authenticationType: AuthenticationTypes;
575-
url: string;
576-
statusUrl?: string;
577-
urlExceptions: UrlException[];
578-
authenticationParameters: { [key: string]: any };
579-
timeoutSeconds: number;
580-
retryStrategyName: string;
581-
provider?: string;
582-
apiVersion?: string;
583-
operationType?: string;
584-
}
585-
586-
export type UrlException = {
587-
userPrincipalName: string;
588-
url: string;
589-
enabled: boolean;
590-
}
591-
592570
export enum APIEndpointCategory {
593-
Orchestration,
594-
ExternalOrchestration,
595-
LLM,
596-
Gatekeeper,
597-
AzureAIDirect,
598-
AzureOpenAIDirect,
599-
FileStoreConnector,
600-
General
571+
Orchestration = 'Orchestration',
572+
ExternalOrchestration = 'ExternalOrchestration',
573+
LLM = 'LLM',
574+
Gatekeeper = 'Gatekeeper',
575+
AzureAIDirect = 'AzureAIDirect',
576+
AzureOpenAIDirect = 'AzureOpenAIDirect',
577+
FileStoreConnector = 'FileStoreConnector',
578+
General = 'General',
601579
}
602580

603581
export enum APIEndpointSubcategory {
604-
OneDriveWorkSchool,
605-
Indexing,
606-
AIModel
582+
OneDriveWorkSchool = 'OneDriveWorkSchool',
583+
Indexing = 'Indexing',
584+
AIModel = 'AIModel',
607585
}
608586

609587
export enum AuthenticationTypes {
610-
Unknown = -1,
611-
AzureIdentity,
612-
APIKey,
613-
ConnectionString,
614-
AccountKey
588+
Unknown = -1,
589+
AzureIdentity = 'AzureIdentity',
590+
APIKey = 'APIKey',
591+
ConnectionString = 'ConnectionString',
592+
AccountKey = 'AccountKey',
615593
}
594+
595+
export type UrlException = {
596+
userPrincipalName: string;
597+
url: string;
598+
enabled: boolean;
599+
};
600+
601+
export type APIEndpointConfiguration = ResourceBase & {
602+
type: string;
603+
category: APIEndpointCategory;
604+
subcategory?: APIEndpointSubcategory;
605+
authenticationType: AuthenticationTypes;
606+
url: string;
607+
statusUrl?: string;
608+
urlExceptions: UrlException[];
609+
authenticationParameters: { [key: string]: any };
610+
timeoutSeconds: number;
611+
retryStrategyName: string;
612+
provider?: string;
613+
apiVersion?: string;
614+
operationType?: string;
615+
};

0 commit comments

Comments
 (0)