import { VectorResponseBase } from "./vector"; export type TencentCloudVecorDBCollectionCreateAIParams = TencentCloudVecorDBCollectionParams & { description?: string; embedding?: { language?: "zh" | "en" | "multi"; enableWordsEmbedding?: boolean; }; splitterPreprocess?: { appendTitleToChunk?: boolean; appendKeywordsToChunk?: boolean; }; indexes: { fieldName: string; fieldType: "string" | "uint64" | "array"; indexType: "filter"; }[]; }; export type TencentCloudVecorDBCollectionParams = { database: string; collectionView: string; }; export type TencentCloudVectorDocumentInfoGetParams = { database: string; collectionView: string; documentSetName?: string; documentSetId?: string; }; export type TencentCloudVectorDocumentInfoGetResponse = VectorResponseBase & { count: number; documentSet: { documentSetId: string; documentSetName: string; textPrefix: string; text: string; documentSetInfo: { textLength: number; byteLength: number; indexedProgress: any; indexedStatus: "New" | "Loading" | "Failure" | "Ready"; createTime: string; lastUpdateTime: string; keywords: any; }; splitterPreprocess: { appendTitleToChunk: boolean; appendKeywordsToChunk: boolean; }; }; } & { [key: string]: any; }; export type TencentCloudVectorDocumentChucksGetParams = { database: string; collectionView: string; documentSetName?: string; documentSetId?: string; offset?: number; limit?: number; }; export type TencentCloudVectorDocumentChucksGetResponse = VectorResponseBase & { documentSetId: string; documentSetName: string; count: number; chucks: { text: string; startPos: number; endPos: number; }[]; }; export type TencentCloudVectorDocumentQueryParams = { database: string; collectionView: string; query: { documentSetName?: string[]; documentSetId?: string[]; filter?: string; offset?: number; limit?: number; outputFields?: string[]; }; }; export type TencentCloudVectorDocumentSearchParams = { database: string; collectionView: string; search: { content?: string; documentSetName?: string[]; options?: { chunkExpand: number[] | [1, 1]; }; filter?: string; limit?: number; }; }; export type TencentCloudVecorDocumentUpdateParams = { database: string; collectionView: string; query: { documentSetName?: string[]; documentSetId?: string[]; filter?: string; }; update: { vector?: number[]; } & { [key: string]: string | number | boolean | string[] | number[] | boolean[]; }; }; export type TencentCloudVecorDocumentDeleteParams = { database: string; collectionView: string; query: { documentSetName?: string[]; documentSetId?: string[]; filter?: string; }; };