Dynamic Embeddings
DynamicEmbeddingWrapper
is designed to handle dynamic data with your embeddings that can be updated over time.
Let’s look at an example of how this could be used:
In the example above, we perform function calls of creating a new embedding using DynamicEmbeddingWrapper
which stores the vector(or “state”) in memory.
When the underlying data changes, we can auto-update the embeddings using the update()
method to change the state of your vectors.
NOTE: This method does not delete or erase your previous embeddings(more on state fallbacks in VersionControlWrapper).
This component does not perform any computations on the embeddings itself - instead, it acts as a container that facilitates the storage and updating of embedding vectors.
The actual computation of new embeddings would typically be done externally, and then the results can be stored in this wrapper.