mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
change callback strategy, add timezone to docker (#96)
This commit is contained in:
@ -56,6 +56,7 @@ class HuEmbedding(Base):
|
||||
|
||||
|
||||
def encode(self, texts: list, batch_size=32):
|
||||
texts = [t[:2000] for t in texts]
|
||||
token_count = 0
|
||||
for t in texts: token_count += num_tokens_from_string(t)
|
||||
res = []
|
||||
|
||||
Reference in New Issue
Block a user