Skip to content

EmbeddingServer #

Bases: object

run(port, host=None) #

Run the embedding server in the foreground until it's stopped.

Parameters:

Name Type Description Default
port int

Port to listen on.

required
host str

Host interface to bind to. Defaults to None.

None

Returns:

Type Description
None

start(port, host=None) #

Start the embedding server in the background and return a handle.

Parameters:

Name Type Description Default
port int

Port to listen on.

required
host str

Host interface to bind to. Defaults to None.

None

Returns:

Type Description
RunningEmbeddingServer

handle to stop the server.