RetrievalCacheAdapter
Interface for the session-level retrieval cache. Implemented by
RetrievalCache from @kuralle-agents/rag. Defined here so
RunContext.retrievalCache can be properly typed without core
depending on rag.
Properties
Section titled “Properties”readonly size: number;Methods
Section titled “Methods”lookup()
Section titled “lookup()”lookup(queryEmbedding, topK?): KnowledgeRetrievalResult[];Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
readonly |
|
|
|
Returns
Section titled “Returns”populate()
Section titled “populate()”populate(results, queryEmbedding?): void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
readonly |
Returns
Section titled “Returns”void