mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 06:28:58 +08:00
fix batch size error for qianwen embedding (#2431)
### What problem does this PR solve? #2402 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
d3262ca378
commit
3044cb85fd
@ -155,6 +155,7 @@ class QWenEmbed(Base):
|
||||
|
||||
def encode(self, texts: list, batch_size=10):
|
||||
import dashscope
|
||||
batch_size = min(batch_size, 4)
|
||||
try:
|
||||
res = []
|
||||
token_count = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user