ragflow/rag/llm
ksztone-huanggonghao 0dff64f6ad
fix: TypeError: only length-1 arrays can be converted to Python scalars (#3211)
### 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

- [ ] Bug Fix (non-breaking change which fixes an issue)


![image](https://github.com/user-attachments/assets/2c21a69f-cd76-4d25-b320-058964812db8)
2024-11-06 11:15:00 +08:00
..
__init__.py accelerate term weight calculation (#3206) 2024-11-05 13:11:26 +08:00
chat_model.py fix local variable ans (#3077) 2024-10-29 10:42:45 +08:00
cv_model.py Fix keys of Xinference deployed models, especially has the same model name with public hosted models. (#2832) 2024-10-16 10:21:08 +08:00
embedding_model.py fix: TypeError: only length-1 arrays can be converted to Python scalars (#3211) 2024-11-06 11:15:00 +08:00
rerank_model.py fix SILICONFLOW rerank error (#2980) 2024-10-23 10:12:39 +08:00
sequence2txt_model.py fix sequence2txt error and usage total token issue (#2961) 2024-10-22 11:38:37 +08:00
tts_model.py support sequence2txt and tts model in Xinference (#2696) 2024-10-08 10:43:18 +08:00