embeddings
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
EmbeddingProvider llmling_agent.embeddings Base class for streaming embedding providers. |
🛈 DocStrings¶
Module providing different embedding model implementations.
EmbeddingProvider
¶
Bases: ABC
Base class for streaming embedding providers.
Source code in src/llmling_agent/embeddings.py
15 16 17 18 19 20 21 22 23 24 |
|
embed_stream
abstractmethod
¶
embed_stream(texts: AsyncIterator[str], batch_size: int = 8) -> AsyncIterator[ndarray]
Stream embeddings one at a time.
Source code in src/llmling_agent/embeddings.py
18 19 20 21 22 23 24 |
|