Enhances BotOrchestrator by integrating optional semantic caching via LangCache for faster LLM responses. Also refactors message saving to occur before and after direct mode handling, and simplifies context change logic for better clarity and flow.
12 lines
No EOL
316 B
QBasic
12 lines
No EOL
316 B
QBasic
|
|
|
|
let text = GET "announcements.gbkb/news/news.pdf"
|
|
let resume = LLM "Resume this document: " + text
|
|
|
|
SET_BOT_MEMORY "resume", resume
|
|
|
|
let text1 = GET "announcements.gbkb/auxiliom/auxiliom.pdf"
|
|
SET_BOT_MEMORY "auxiliom", text1
|
|
|
|
let text2 = GET "announcements.gbkb/toolbix/toolbix.pdf"
|
|
SET_BOT_MEMORY "toolbix", text2 |