mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

* feat: collection metadata filter (#2211) * feat: add dataset collection tags (#2231) * dataset page * workflow page * move * fix * add plus filter * fix * fix * fix * perf: collection tag code * fix: collection tags (#2249) * fix * fix * fix tags of dataset page * fix tags of workflow page * doc * add comments * fix: collection tags (#2264) * fix: metadata filter * feat: search filter --------- Co-authored-by: heheer <1239331448@qq.com> Co-authored-by: heheer <heheer@sealos.io>
39 lines
879 B
TypeScript
39 lines
879 B
TypeScript
import type { EmbeddingRecallItemType } from './type';
|
|
|
|
export type DeleteDatasetVectorProps = (
|
|
| { id: string }
|
|
| { datasetIds: string[]; collectionIds?: string[] }
|
|
| { idList: string[] }
|
|
) & {
|
|
teamId: string;
|
|
};
|
|
export type DelDatasetVectorCtrlProps = DeleteDatasetVectorProps & {
|
|
retry?: number;
|
|
};
|
|
|
|
export type InsertVectorProps = {
|
|
teamId: string;
|
|
datasetId: string;
|
|
collectionId: string;
|
|
};
|
|
export type InsertVectorControllerProps = InsertVectorProps & {
|
|
vector: number[];
|
|
retry?: number;
|
|
};
|
|
|
|
export type EmbeddingRecallProps = {
|
|
teamId: string;
|
|
datasetIds: string[];
|
|
|
|
forbidCollectionIdList: string[];
|
|
filterCollectionIdList?: string[];
|
|
};
|
|
export type EmbeddingRecallCtrlProps = EmbeddingRecallProps & {
|
|
vector: number[];
|
|
limit: number;
|
|
retry?: number;
|
|
};
|
|
export type EmbeddingRecallResponse = {
|
|
results: EmbeddingRecallItemType[];
|
|
};
|