swarmauri.core.vector_stores.IVectorSpan module

class swarmauri.core.vector_stores.IVectorSpan.IVectorSpan[source]

Bases: ABC

Interface for determining if a vector is within the span of a set of vectors.

abstract in_span(vector, basis_vectors)[source]

Checks if the given vector is in the span of the provided basis vectors.

Parameters: - vector (Any): The vector to check. - basis_vectors (List[Any]): A list of vectors that might span the vector.

Returns: - bool: True if the vector is in the span of the basis_vectors, False otherwise.

Return type:

bool