superduperdb.vector_search.server package#

Submodules#

superduperdb.vector_search.server.app module#

superduperdb.vector_search.server.service module#

Adds a vector in vector index vector_index :param vector: Vector to be added. :param vector_index: Vector index where vector needs to be added.

Initiates a vector search class corresponding to vector_index :param vector_index: Vector class to initiate :param db: Datalayer instance

superduperdb.vector_search.server.service.database(request: Request) Datalayer[source]#

Deletes a vector corresponding to id

Helper functon for listing all vector search indices. :param db: Datalayer instance

superduperdb.vector_search.server.service.query_search_from_array(array: List[int | float] | Dict, vector_index: str, n: int = 100, db=None) Tuple[List[str], List[float]][source]#

Perform a vector search with an array :param array: Array to perform vector search on index. :param vector_index: Vector search index :param db: Datalayer instance

superduperdb.vector_search.server.service.query_search_from_id(id: str, vector_index: str, n: int = 100, db=None) Tuple[List[str], List[float]][source]#

Perform a vector search with an id :param id: Identifier for vector :param vector_index: Vector search index :param db: Datalayer instance

Module contents#