@botonic/plugin-knowledge-bases
Version:
Use a Hubtype to make the bot respond through a knowledge base.
19 lines (16 loc) • 309 B
text/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
}