Skip to main content

agrag.retrieval.errors.UnknownRecipeMethodError

UnknownRecipeMethodError(unknown:list[str], known:list[str]) -> None

Bases: RetrievalError

A Recipe named a method SearchEngine does not know how to run.

A misspelled method name is a configuration error and must be raised at search time so an empty successful search cannot silently hide a typo.

Attributes:

  • unknown – The method names the recipe listed that are not in the retriever registry.
  • known – The method names this SearchEngine can run.

known​

known = list(known)

unknown​

unknown = list(unknown)