MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / augmentQueryAdaptive

Function augmentQueryAdaptive

chat/services/memoryBridge.js:137–150  ·  view source on GitHub ↗
({ query, alreadyRetrievedContext, conversationText, apiKey, model, onProgress, onModelText, signal })

Source from the content-addressed store, hash-verified

135 throwIfAborted(signal);
136 return memoryBank.retrieveAdaptive(query, alreadyRetrievedContext, conversationText, { signal });
137}
138
139export async function augmentQueryAdaptive({ query, alreadyRetrievedContext, conversationText, apiKey, model, onProgress, onModelText, signal }) {
140 throwIfAborted(signal);
141 const memoryBank = await createConfidentialMemoryBank({
142 apiKey,
143 model,
144 onProgress,
145 onModelText,
146 signal
147 });
148
149 await memoryBank.init();
150 throwIfAborted(signal);
151 return memoryBank.augmentQueryAdaptive(query, alreadyRetrievedContext, conversationText, { signal });
152}
153

Callers

nothing calls this directly

Calls 3

throwIfAbortedFunction · 0.70
initMethod · 0.45

Tested by

no test coverage detected