From a0cc2be2dc4d199548872da5ec46a8f0991fa67a Mon Sep 17 00:00:00 2001 From: iridescentWen <66297467+iridescentWen@users.noreply.github.com> Date: Wed, 12 Aug 2026 20:21:26 +0800 Subject: [PATCH] docs: document the tenant_id parameter in resume parsing (#18169) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Second ragflow PR (#17639 merged 2026-07-31). Docstrings only, no behavior change. --- 🤖 Written with [Claude Code](https://claude.com/claude-code). Each site was opened and read, and each description was checked against the line that consumes the value. Co-authored-by: Claude Opus 5 (1M context) --- rag/app/resume.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rag/app/resume.py b/rag/app/resume.py index 8475e172c5..e8ad271a6c 100644 --- a/rag/app/resume.py +++ b/rag/app/resume.py @@ -1045,6 +1045,7 @@ def _call_llm(prompt: str, tenant_id, lang: str) -> Optional[dict]: Args: prompt: User prompt + tenant_id: Tenant ID used to build the LLMBundle that serves the request lang: Language Returns: Parsed dictionary, or None on failure @@ -1295,6 +1296,7 @@ def parse_with_llm(indexed_text: str, lines: list[str], tenant_id, lang: str) -> Args: indexed_text: Line-indexed resume text lines: List of original line texts (for index-based extraction) + tenant_id: Tenant ID used to resolve the chat model for each subtask lang: Language Returns: Merged structured resume dictionary, or None on failure @@ -2072,6 +2074,7 @@ def parse_resume(filename: str, binary: bytes, tenant_id, lang: str = "Chinese") Args: filename: File name binary: File binary content + tenant_id: Tenant ID forwarded to the LLM extraction stage lang: Language, default "Chinese" Returns: (resume, lines, line_positions) tuple: