IndexProps
Properties for defining a Index.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-bailian-index
Initializer
import { IndexProps } from '@alicloud/ros-cdk-bailian'
const indexProps: IndexProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
name | string | @alicloud/ros-cdk-core.IResolvable | Property name: Knowledge base name. |
sourceType | string | @alicloud/ros-cdk-core.IResolvable | Property sourceType: Data source type. |
structureType | string | @alicloud/ros-cdk-core.IResolvable | Property structureType: Knowledge base type. |
workspaceId | string | @alicloud/ros-cdk-core.IResolvable | Property workspaceId: Workspace ID. |
categoryIds | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property categoryIds: Category IDs to import when creating the knowledge base. |
chunkMode | string | @alicloud/ros-cdk-core.IResolvable | Property chunkMode: Chunk strategy. |
chunkSize | number | @alicloud/ros-cdk-core.IResolvable | Property chunkSize: Chunk size, the maximum number of characters per text slice. |
connectId | string | @alicloud/ros-cdk-core.IResolvable | Property connectId: Connection ID. |
database | string | @alicloud/ros-cdk-core.IResolvable | Property database: Database name for structured knowledge base. |
denseSimilarityTopK | number | @alicloud/ros-cdk-core.IResolvable | Property denseSimilarityTopK: Vector retrieval Top K. |
description | string | @alicloud/ros-cdk-core.IResolvable | Property description: Knowledge base description. |
documentIds | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property documentIds: Document IDs to import when creating the knowledge base. |
embeddingModelName | string | @alicloud/ros-cdk-core.IResolvable | Property embeddingModelName: Embedding model used by the knowledge base. |
enableHeaders | boolean | @alicloud/ros-cdk-core.IResolvable | Property enableHeaders: Whether to enable headers for document parsing. |
enableRewrite | boolean | @alicloud/ros-cdk-core.IResolvable | Property enableRewrite: Whether to enable multi-turn dialogue rewriting. |
knowledgeScene | string | @alicloud/ros-cdk-core.IResolvable | Property knowledgeScene: Knowledge base scene. |
knowledgeType | string | @alicloud/ros-cdk-core.IResolvable | Property knowledgeType: Knowledge base type classification. |
metaExtractColumns | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | MetaExtractColumnsProperty[] | Property metaExtractColumns: Metadata extraction configuration. |
overlapSize | number | @alicloud/ros-cdk-core.IResolvable | Property overlapSize: Overlap size, the number of overlapping characters between adjacent text slices. |
pipelineCommercialCu | number | @alicloud/ros-cdk-core.IResolvable | Property pipelineCommercialCu: RCU count for enterprise edition. |
pipelineCommercialType | string | @alicloud/ros-cdk-core.IResolvable | Property pipelineCommercialType: Knowledge base specification type. |
pipelineRetrieveRateLimitStrategy | string | @alicloud/ros-cdk-core.IResolvable | Property pipelineRetrieveRateLimitStrategy: Retrieval rate limit strategy for enterprise edition. |
rerankInstruct | string | @alicloud/ros-cdk-core.IResolvable | Property rerankInstruct: Custom rerank instruction. |
rerankMinScore | number | @alicloud/ros-cdk-core.IResolvable | Property rerankMinScore: Similarity threshold. |
rerankMode | string | @alicloud/ros-cdk-core.IResolvable | Property rerankMode: Rerank mode. |
rerankModelName | string | @alicloud/ros-cdk-core.IResolvable | Property rerankModelName: Rerank model used by the knowledge base. |
separator | string | @alicloud/ros-cdk-core.IResolvable | Property separator: Separator for chunking. |
sinkInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Property sinkInstanceId: Vector storage instance ID. |
sinkRegion | string | @alicloud/ros-cdk-core.IResolvable | Property sinkRegion: Region of the vector storage instance. |
sinkType | string | @alicloud/ros-cdk-core.IResolvable | Property sinkType: Vector storage type. |
sparseSimilarityTopK | number | @alicloud/ros-cdk-core.IResolvable | Property sparseSimilarityTopK: Keyword retrieval Top K. |
table | string | @alicloud/ros-cdk-core.IResolvable | Property table: Table name for structured knowledge base. |
tableIds | @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] | Property tableIds: Table IDs to import when creating the knowledge base. |
nameRequired
public readonly name: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property name: Knowledge base name.
1-20 characters. Supports Chinese, English, numbers, underscores (_), hyphens (-), periods (.) and colons (:).
sourceTypeRequired
public readonly sourceType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property sourceType: Data source type.
DATA_CENTER_CATEGORY: import files from specified categories. DATA_CENTER_FILE: import specified files.
structureTypeRequired
public readonly structureType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property structureType: Knowledge base type.
unstructured: document search or audio\/video knowledge base. structured: data query or image Q&A knowledge base.
workspaceIdRequired
public readonly workspaceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property workspaceId: Workspace ID.
The knowledge base will be created in this workspace.
categoryIdsOptional
public readonly categoryIds: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property categoryIds: Category IDs to import when creating the knowledge base.
Required when SourceType is DATA_CENTER_CATEGORY.
chunkModeOptional
public readonly chunkMode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property chunkMode: Chunk strategy.
If not specified, smart chunking is used. When set to regex, Separator must also be provided.
chunkSizeOptional
public readonly chunkSize: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property chunkSize: Chunk size, the maximum number of characters per text slice.
Range [1-6000]. Defaults to 500. If ChunkSize is less than 100, OverlapSize must also be set.
connectIdOptional
public readonly connectId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property connectId: Connection ID.
Replaces the deprecated datasourceCode parameter.
databaseOptional
public readonly database: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property database: Database name for structured knowledge base.
denseSimilarityTopKOptional
public readonly denseSimilarityTopK: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property denseSimilarityTopK: Vector retrieval Top K.
Retrieves the K most similar text slices by vector similarity. Range [0-100]. Defaults to 100. DenseSimilarityTopK + SparseSimilarityTopK must be <= 200. Only supported in UpdateIndex, not in CreateIndex.
descriptionOptional
public readonly description: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property description: Knowledge base description.
0-1000 characters.
documentIdsOptional
public readonly documentIds: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property documentIds: Document IDs to import when creating the knowledge base.
Required when SourceType is DATA_CENTER_FILE.
embeddingModelNameOptional
public readonly embeddingModelName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property embeddingModelName: Embedding model used by the knowledge base.
Defaults to text-embedding-v3.
enableHeadersOptional
public readonly enableHeaders: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property enableHeaders: Whether to enable headers for document parsing.
Defaults to false.
enableRewriteOptional
public readonly enableRewrite: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property enableRewrite: Whether to enable multi-turn dialogue rewriting.
Defaults to true.
knowledgeSceneOptional
public readonly knowledgeScene: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property knowledgeScene: Knowledge base scene.
Must be provided together with KnowledgeType. The valid values depend on KnowledgeType.
knowledgeTypeOptional
public readonly knowledgeType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property knowledgeType: Knowledge base type classification.
Must be provided together with KnowledgeScene. If both are omitted, the system uses default based on StructureType.
metaExtractColumnsOptional
public readonly metaExtractColumns: IResolvable | IResolvable | MetaExtractColumnsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | MetaExtractColumnsProperty[]
Property metaExtractColumns: Metadata extraction configuration.
overlapSizeOptional
public readonly overlapSize: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property overlapSize: Overlap size, the number of overlapping characters between adjacent text slices.
Range [0-1024]. Defaults to 100. Must be less than ChunkSize.
pipelineCommercialCuOptional
public readonly pipelineCommercialCu: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property pipelineCommercialCu: RCU count for enterprise edition.
Only required when PipelineCommercialType is enterprise. Range [1-200].
pipelineCommercialTypeOptional
public readonly pipelineCommercialType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property pipelineCommercialType: Knowledge base specification type.
standard: Standard edition. enterprise: Enterprise edition. Defaults to standard.
pipelineRetrieveRateLimitStrategyOptional
public readonly pipelineRetrieveRateLimitStrategy: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property pipelineRetrieveRateLimitStrategy: Retrieval rate limit strategy for enterprise edition.
Defaults to downgrade.
rerankInstructOptional
public readonly rerankInstruct: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property rerankInstruct: Custom rerank instruction.
Required when RerankMode is custom.
rerankMinScoreOptional
public readonly rerankMinScore: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property rerankMinScore: Similarity threshold.
Only text slices with similarity score exceeding this value will be recalled. Range [0.01-1.00]. Defaults to 0.01.
rerankModeOptional
public readonly rerankMode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property rerankMode: Rerank mode.
qa: Q&A scenario (default). similar: similarity scenario. custom: custom rerank instruction, requires RerankInstruct.
rerankModelNameOptional
public readonly rerankModelName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property rerankModelName: Rerank model used by the knowledge base.
Defaults to qwen3-rerank when not specified.
separatorOptional
public readonly separator: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property separator: Separator for chunking.
Only effective when ChunkMode is regex.
sinkInstanceIdOptional
public readonly sinkInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property sinkInstanceId: Vector storage instance ID.
Required when SinkType is ADB.
sinkRegionOptional
public readonly sinkRegion: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property sinkRegion: Region of the vector storage instance.
Required when SinkType is ADB.
sinkTypeOptional
public readonly sinkType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property sinkType: Vector storage type.
BUILT_IN: managed by Bailian platform. ADB: AnalyticDB for PostgreSQL. Defaults to BUILT_IN. When set to ADB, SinkInstanceId and SinkRegion are required.
sparseSimilarityTopKOptional
public readonly sparseSimilarityTopK: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property sparseSimilarityTopK: Keyword retrieval Top K.
Retrieves text slices by exact keyword matching. Range [0-100]. Defaults to 100. DenseSimilarityTopK + SparseSimilarityTopK must be <= 200. Only supported in UpdateIndex, not in CreateIndex.
tableOptional
public readonly table: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property table: Table name for structured knowledge base.
tableIdsOptional
public readonly tableIds: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property tableIds: Table IDs to import when creating the knowledge base.