UNPKG

ludmi

Version:

LU (Layer Understanding) is a lightweight framework for controlled chatbot interactions with LLMs, action orchestration, and retrieval-augmented generation (RAG).

21 lines (20 loc) 648 B
import { Chunks, Messages } from "../types/luTypes"; interface retrieverProps { revised_prompt: string; data: Array<{ embedding: Array<number>; [key: string]: any; }>; size?: number; } interface ragProps { userData?: any; conversation?: Messages; revised_prompt?: string; chunks: Chunks; model?: string; prompt?: string; } export declare const retriever: ({ revised_prompt, data, size }: retrieverProps) => Promise<Chunks>; export declare const rag: ({ chunks, conversation, revised_prompt, userData, model, prompt }: ragProps) => Promise<import("./llm/openai").AIResponseReturn>; export {};