Skip to content

Commit feb4c28

Browse files
committed
Multimodal embedding proposal
1 parent ff6c99f commit feb4c28

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

redisvl/utils/rerank/voyageai.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ def _preprocess(
120120
if isinstance(doc, dict) and "content" in doc
121121
]
122122
else:
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-
)
123+
texts = [str(doc) for doc in docs]
127124

128125
reranker_kwargs = {
129126
"query": query,

0 commit comments

Comments
 (0)