UNPKG

@botonic/plugin-knowledge-bases

Version:

Botonic plugin for **knowledge base** features (retrieval, grounding, etc.) on the **current** framework line.

17 lines (16 loc) 561 B
import { AxiosResponse } from 'axios'; import { Chunk } from './types'; export interface HtApiKnowledgeBaseResponse { inference_id: string; query: string; chunks: Chunk[]; has_knowledge: boolean; is_faithful: boolean; answer: string; } export declare class HubtypeApiService { private host; private timeout; constructor(host: string, timeout?: number); inferenceV2(authToken: string, sources: string[], instructions: string, messageId: string, memoryLength: number): Promise<AxiosResponse<HtApiKnowledgeBaseResponse>>; }