BaseEmbeddings
class, and implementing the necessary methods. It’s quite simple!
Example
First, we create a child class of theBaseEmbeddings
class, and implement the necessary methods.
AutoEmbeddings
class, for the sake of convenience. We can do this by registering it with the EmbeddingsRegistry
.
AutoEmbeddings
class.