servers.run_server

servers.run_server(vector_stores, endpoint_names, port=8000)

Create and run a FastAPI server with search endpoints.

Parameters

Name Type Description Default
vector_stores list[VectorStore] A list of VectorStore objects, each responsible for handling embedding and search operations for a specific endpoint. required
endpoint_names list[str] A list of endpoint names corresponding to the VectorStores to be exposed. required
port int [optional] The port on which the API server will run. Defaults to 8000. 8000

Raises

Name Type Description
DataValidationError Raised if the input parameters are invalid, e.g. port value is out of bounds.