@botonic/plugin-knowledge-bases
Version:
Use a Hubtype to make the bot respond through a knowledge base.
17 lines (16 loc) • 337 B
TypeScript
export interface PluginKnowledgeBaseOptions {
host: string;
authToken?: string;
timeout?: number;
}
export interface KnowledgeBaseResponse {
inferenceId: string;
hasKnowledge: boolean;
isFaithful: boolean;
chunkIds: string[];
answer: string;
}
export interface Chunk {
id: string;
text: string;
}