The InMemory Embedding Cache node provides an efficient way to cache generated embeddings in memory, reducing the need to recompute them for repeated queries within a single session.
inMemoryEmbeddingCache
InMemoryEmbeddingCache
CacheBackedEmbeddings
object, which wraps the original embedding model with caching functionality.
CacheBackedEmbeddings
class from LangChain, which provides a robust framework for caching embeddings.
CacheBackedEmbeddings
for reliability and consistency.