mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
Some checks failed
Deploy image by kubeconfig / build-fastgpt-docs-images (push) Waiting to run
Deploy image by kubeconfig / update-docs-image (push) Blocked by required conditions
Deploy image to vercel / deploy-production (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
Sync images / sync (push) Has been cancelled
* 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[];
|
|
};
|