Helper tool to embed Infinity.
It is not a part of Langchain's stable API, direct use discouraged.
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"] )
call the embedding of model
call the embedding of model, async method