Skip to main content

in_memory

superduper.vector_search.in_memory

Source code

InMemoryVectorSearcher​

InMemoryVectorSearcher(self,
identifier: str,
dimensions: int,
h: Optional[numpy.ndarray] = None,
index: Optional[List[str]] = None,
measure: Union[str,
Callable] = 'cosine')
ParameterDescription
identifierUnique string identifier of index
dimensionsDimension of the vector embeddings
harray/ tensor of vectors
indexlist of IDs
measuremeasure to assess similarity

Simple hash-set for looking up with vector similarity.