Skip to content

Commit 28ae9d3

Browse files
committed
Corrections
1 parent 98ece1c commit 28ae9d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redisvl/utils/rerank/voyageai.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ def _preprocess(
120120
if isinstance(doc, dict) and "content" in doc
121121
]
122122
else:
123-
texts = [str(doc) for doc in docs]
123+
raise ValueError(
124+
"The docs should either be List[str] or List[Dict[str, Any]] - "
125+
"this case, the documents to rerank has to be in the 'content'"
126+
)
124127

125128
reranker_kwargs = {
126129
"query": query,

0 commit comments

Comments
 (0)