swarmauri.core.vector_stores.IProject module

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

Bases: ABC

Interface for projecting one vector onto another.

abstract project(vector_a, vector_b)[source]

Projects vector_a onto vector_b.

Parameters:
  • vector_a (List[float]) – The vector to be projected.

  • vector_b (List[float]) – The vector onto which vector_a is projected.

Returns:

The projection of vector_a onto vector_b.

Return type:

List[float]