Sfoglia il codice sorgente

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)
tags/v0.11.0
Kevin Hu 1 anno fa
parent
commit
3044cb85fd
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      rag/llm/embedding_model.py

+ 1
- 0
rag/llm/embedding_model.py Vedi File

@@ -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…
Annulla
Salva