Fix:limit random sampling range in check_embedding (#11337)
### What problem does this PR solve? issue: [#11319](https://github.com/infiniflow/ragflow/issues/11319) change: limit random sampling range in check_embedding ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
fea157ba08
commit
ded9bf80c5
1 changed files with 1 additions and 1 deletions
|
|
@ -819,7 +819,7 @@ def check_embedding():
|
|||
return []
|
||||
|
||||
n = min(n, total)
|
||||
offsets = sorted(random.sample(range(total), n))
|
||||
offsets = sorted(random.sample(range(min(total,1000)), n))
|
||||
out = []
|
||||
|
||||
for off in offsets:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue