Helper tool to embed Infinity.
It is not a part of Langchain's stable API, direct use discouraged.
TinyAsyncOpenAIInfinityEmbeddingClient(
self,
host: str = 'http://localhost:7797/v1',
aiosession: Optional[aiohttp.ClientSession] = None
)Example:
.. code-block:: python
mini_client = TinyAsyncInfinityEmbeddingClient( ) embeds = mini_client.embed( model="BAAI/bge-small", text=["doc1", "doc2"] )
embeds = await mini_client.aembed( model="BAAI/bge-small", text=["doc1", "doc2"] )