Base embedding
Classes:
Name | Description |
---|---|
BaseEmbedding |
|
Classes¶
BaseEmbedding
¶
Bases: ABC
Methods:
Name | Description |
---|---|
aembed |
Generate embedding for a single text. |
aembed_batch |
Generate embeddings for a list of texts. |
embed |
Synchronous wrapper for |
embed_batch |
Synchronous wrapper for |
Attributes:
Name | Type | Description |
---|---|---|
dimension |
int
|
Synchronous wrapper for that runs the async implementation. |
Source code in pyagenity/store/embedding/base_embedding.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Attributes¶
dimension
abstractmethod
property
¶
dimension
Synchronous wrapper for that runs the async implementation.
Functions¶
aembed
abstractmethod
async
¶
aembed(text)
Generate embedding for a single text.
Source code in pyagenity/store/embedding/base_embedding.py
20 21 22 23 |
|
aembed_batch
abstractmethod
async
¶
aembed_batch(texts)
Generate embeddings for a list of texts.
Source code in pyagenity/store/embedding/base_embedding.py
11 12 13 |
|
embed
¶
embed(text)
Synchronous wrapper for aembed
that runs the async implementation.
Source code in pyagenity/store/embedding/base_embedding.py
16 17 18 |
|
embed_batch
¶
embed_batch(texts)
Synchronous wrapper for aembed_batch
that runs the async implementation.
Source code in pyagenity/store/embedding/base_embedding.py
7 8 9 |
|