We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2156bb commit ee68921Copy full SHA for ee68921
redisvl/utils/rerank/voyageai.py
@@ -109,6 +109,9 @@ def _preprocess(
109
return_score = kwargs.get("return_score", self.return_score)
110
truncation = kwargs.get("truncation")
111
112
+ if not isinstance(docs, list):
113
+ raise ValueError("Docs to rerank should either be a list of str or dict.")
114
+
115
if all(isinstance(doc, dict) and "content" in doc for doc in docs):
116
texts = [
117
str(doc["content"])
0 commit comments