Skip to content

init python part - #7

Merged
KevinHuSh merged 1 commit into
infiniflow:mainfrom
KevinHuSh:main
Dec 14, 2023
Merged

KevinHuSh merged 1 commit into
infiniflow:mainfrom
KevinHuSh:main

Conversation

@KevinHuSh

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Add corresponding issue link with summary if exists -->

Issue link:

What is changed and how it works?

Code changes

  • Has Code change
  • Has CI related scripts change

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Note for reviewer

@KevinHuSh
KevinHuSh merged commit 6e69a39 into infiniflow:main Dec 14, 2023
yingfeng pushed a commit that referenced this pull request Feb 5, 2024
pinglanyi added a commit to pinglanyi/ragflow that referenced this pull request May 21, 2026
- ocr.py: check ONNX Runtime CUDAExecutionProvider directly instead of
  requiring PyTorch for cuda_is_available(), since OCR uses ONNX not torch.
  All models (det/rec/layout/tsr) now load on GPU (~10x OCR speedup).
- start.sh: add BACKEND_PORT, TASK_EXECUTOR_OFFSET, multi-worker support
  with configurable MAX_CONCURRENT_TASKS and TASK_EXECUTOR_COUNT.
- INSTALL.md: document GPU OCR fix (infiniflow#7) and multi-worker config (infiniflow#8).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
xugangqiang referenced this pull request in xugangqiang/ragflow Jul 28, 2026
- Scope temperature to 0.2 only for keyword/question extraction; the
  generic field-extraction path now leaves Temperature unset to use the
  model default, matching Python's generic Extractor (generator.py).
- Merge runAutoKeywords/runAutoQuestions with their *Locked duplicates
  into single functions taking a *sync.Mutex (nil = sequential); map
  access stays race-safe under concurrency.
- retryInvoker.Invoke now returns a nil response on failure instead of
  the last partial response.
- RetryWithBackoff gains an optional shouldRetry predicate; the extractor
  chat call uses a lightweight classifier so non-transient errors
  (auth/4xx/config) stop retrying immediately. The greedy </think> strip
  already matched Python's re.sub behavior, so no change there.

Addresses review items #3, #5, #6, #7 on PR infiniflow#17470.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant