UNPKG

@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

39 lines (38 loc) 889 B
export interface IRAGOptions { url: string; vikingdbName: string; headers?: HeadersInit; method?: 'POST' | 'GET'; } export interface RecallOptions { indexName: string; topK: number; subIndex?: string; dslQuery?: Record<string, any>; isRandomRecall?: boolean; vector?: number[]; sparseVector?: string[]; sparseLogitAlpha?: number; missAsEmpty?: boolean; manualChunk?: boolean; } export interface RecallResult { scores: number; label_upper64: number; label_lower64: number; attrs: string; extraInfos: string; } export interface RawEmbeddingOptions { rawDatas: { text: string; }[]; } export interface RawEmbdeddingResult { vector?: number[]; sparseVector?: string[]; error?: string; } export type RawRecallOptions = Omit<RecallOptions, 'vector' | 'sparseVector'> & { text: string; };