infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.87k stars 2.24k forks source link

fix: TypeError: only length-1 arrays can be converted to Python scalars #3211

Closed ksztone-huanggonghao closed 1 week ago

ksztone-huanggonghao commented 1 week ago

What problem does this PR solve?

fix "TypeError: only length-1 arrays can be converted to Python scalars" while using cohere embedding model.

Type of change

image