@visactor/vmind
Version:
<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu
28 lines (27 loc) • 825 B
TypeScript
import type { IRAGOptions, RecallOptions, RawEmbeddingOptions, RawRecallOptions, RecallResult } from '../types/rag';
export declare class RAGManage {
options: IRAGOptions;
constructor(options: IRAGOptions);
getDefaultOptions(): IRAGOptions;
updateOptions(options: IRAGOptions): void;
recall(options: RecallOptions): Promise<{
error?: string;
result?: RecallResult[];
}>;
rawEmbedding(options: RawEmbeddingOptions): Promise<{
error: any;
vector?: undefined;
sparseVector?: undefined;
} | {
vector: any;
sparseVector: any;
error?: undefined;
}>;
rawRecall(options: RawRecallOptions): Promise<{
error?: string;
result?: RecallResult[];
} | {
error: any;
result: RecallResult[];
}>;
}