remote_embeds
langroid/embedding_models/remote_embeds.py
If run as a script, starts an RPC server which handles remote embedding requests:
For example:
python3 -m langroid.embedding_models.remote_embeds --port port
where port
is the port at which the service is exposed. Currently,
supports insecure connections only, and this should NOT be exposed to
the internet.
serve(bind_address_base='localhost', port=50052, batch_size=512, data_parallel=False, device=None, devices=None, model_name='BAAI/bge-large-en-v1.5')
async
¶
Starts the RPC server.