Find answers from the community

Updated 9 months ago

Error

Plain Text
retriever=index.as_retriever()
retriever_evaluator = RetrieverEvaluator.from_metric_names(
    ["mrr", "hit_rate"], retriever=retriever
)
Why am I getting this error?
Plain Text
ValidationError: 1 validation error for RetrieverEvaluator
retriever
  instance of BaseRetriever expected (type=type_error.arbitrary_type; expected_arbitrary_type=BaseRetriever)
L
1 comment
Did you mix legacy and non-legacy imports?
Add a reply
Sign up and join the conversation on Discord