dspy.retrievers.Embeddings
dspy.Embeddings(corpus: list[str], embedder, k: int = 5, callbacks: list[Any] | None = None, cache: bool = False, brute_force_threshold: int = 20000, normalize: bool = True)
Source code in dspy/retrievers/embeddings.py
Functions
__call__(query: str)
:::