Skip to content

Commit

Permalink
Merge pull request #2142 from solliancenet/sc-add-indexer-specific-se…
Browse files Browse the repository at this point in the history
…ttings-on-vector-store-form

Add indexer specific settings on vector store form
  • Loading branch information
ciprianjichici authored Jan 19, 2025
2 parents 2e72052 + ee730b3 commit b26ac55
Show file tree
Hide file tree
Showing 6 changed files with 1,038 additions and 1,006 deletions.
1 change: 0 additions & 1 deletion src/ui/ManagementPortal/js/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,6 @@ export default {
},

async createIndexingProfile(request): Promise<any> {
console.log('createIndexingProfile', request);
return await this.fetch(
`/instances/${this.instanceId}/providers/FoundationaLLM.Vectorization/indexingProfiles/${request.name}?api-version=${this.apiVersion}`,
{
Expand Down
108 changes: 54 additions & 54 deletions src/ui/ManagementPortal/js/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ export type ResourceProviderGetResult<T> = {
};

export type ResourceProviderUpsertResult = {
/**
* The id of the object that was created or updated.
*/
objectId: string;

/**
* A flag denoting whether the upserted resource already exists.
*/
resourceExists: boolean;

/**
* Gets or sets the resource resulting from the upsert operation.
* Each resource provider will decide whether to return the resource in the upsert result or not.
*/
resource?: any;
/**
* The id of the object that was created or updated.
*/
objectId: string;

/**
* A flag denoting whether the upserted resource already exists.
*/
resourceExists: boolean;

/**
* Gets or sets the resource resulting from the upsert operation.
* Each resource provider will decide whether to return the resource in the upsert result or not.
*/
resource?: any;
};

export type ResourceProviderActionResult = {
Expand Down Expand Up @@ -115,7 +115,7 @@ export type Agent = ResourceBase & {
export type AgentAccessToken = ResourceBase & {
id: string;
active: boolean;
}
};

export type Prompt = ResourceBase & {
object_id: string;
Expand Down Expand Up @@ -567,49 +567,49 @@ export function convertToAppConfigKeyVault(baseConfig: AppConfigUnion): AppConfi
};
}

export type APIEndpointConfiguration = ResourceBase & {
type: string;
category: APIEndpointCategory;
subcategory?: APIEndpointSubcategory;
authenticationType: AuthenticationTypes;
url: string;
statusUrl?: string;
urlExceptions: UrlException[];
authenticationParameters: { [key: string]: any };
timeoutSeconds: number;
retryStrategyName: string;
provider?: string;
apiVersion?: string;
operationType?: string;
}

export type UrlException = {
userPrincipalName: string;
url: string;
enabled: boolean;
}

export enum APIEndpointCategory {
Orchestration,
ExternalOrchestration,
LLM,
Gatekeeper,
AzureAIDirect,
AzureOpenAIDirect,
FileStoreConnector,
General
Orchestration = 'Orchestration',
ExternalOrchestration = 'ExternalOrchestration',
LLM = 'LLM',
Gatekeeper = 'Gatekeeper',
AzureAIDirect = 'AzureAIDirect',
AzureOpenAIDirect = 'AzureOpenAIDirect',
FileStoreConnector = 'FileStoreConnector',
General = 'General',
}

export enum APIEndpointSubcategory {
OneDriveWorkSchool,
Indexing,
AIModel
OneDriveWorkSchool = 'OneDriveWorkSchool',
Indexing = 'Indexing',
AIModel = 'AIModel',
}

export enum AuthenticationTypes {
Unknown = -1,
AzureIdentity,
APIKey,
ConnectionString,
AccountKey
Unknown = -1,
AzureIdentity = 'AzureIdentity',
APIKey = 'APIKey',
ConnectionString = 'ConnectionString',
AccountKey = 'AccountKey',
}

export type UrlException = {
userPrincipalName: string;
url: string;
enabled: boolean;
};

export type APIEndpointConfiguration = ResourceBase & {
type: string;
category: APIEndpointCategory;
subcategory?: APIEndpointSubcategory;
authenticationType: AuthenticationTypes;
url: string;
statusUrl?: string;
urlExceptions: UrlException[];
authenticationParameters: { [key: string]: any };
timeoutSeconds: number;
retryStrategyName: string;
provider?: string;
apiVersion?: string;
operationType?: string;
};
Loading

0 comments on commit b26ac55

Please sign in to comment.