I build and fix the plumbing that makes retrieval-augmented generation work in production: document ingestion and chunking, doc-store engine connectors, and the HTTP layer that streams answers to clients.
Currently
- Contributing upstream to RAGFlow — the Go backend: the ingestion and chunking pipeline (token / general / title-family / One chunkers), Elasticsearch / OpenSearch / Infinity connectors, SSE streaming.
- MSc research on whether a generated answer is actually supported by the retrieved evidence (groundedness), and how minimal factual perturbations in that evidence break existing detectors.
Upstream contributions — 6 merged, 4 in review
| Change | What was wrong | Status |
|---|---|---|
| ragflow#21439 | Go ingestion: a chunk whose cleaned text was empty still entered the embedding batch, so the provider rejected the whole batch | merged |
| ragflow#21656 | Go HTTP: agent chat and bot completion streams were cut at the server's fixed 180 s write deadline because it was never cleared | merged |
| ragflow#22667 | Agent DSL: a Switch condition item without an operand still matched and redirected the flow | merged |
| ragflow#22717 | Metadata: a list mixing a non-string element kept its combined value instead of splitting it | merged |
| ragflow#22749 | Chunking: the Q&A delimiter was decided differently from the reference, so a quoted comma-separated file produced no chunks | merged |
| ragflow#22948 | Chunking: the group chunker merged against a hard-coded 1024-token ceiling instead of the configured chunk_token_cap |
merged |
| ragflow#21567 | OpenSearch connector: deep pagination past index.max_result_window failed with from + size = 11000 |
in review |
| ragflow#22875 | Chunking: a CRLF document was never split by a custom delimiter and kept its carriage returns | in review |
| ragflow#22940 | Chunking: the One parser joined PDF blocks in upstream order, scrambling the single chunk | in review |
| ragflow#22979 | Chunking: the plain-text sentence fallback trimmed the delimiters it split on, gluing sentences together | in review |
Each change ships with a regression test that fails on the previous revision. Where a fix has more than one entry point — text normalization, for instance, is read by the payload path, the per-item split and the cross-item merger — the tests cover every path, not just the one the report came from.
How I work
- Reproduce first, then read the code path — a fix without a failing test is a guess.
- Probe the claim before believing it; measure it, do not infer it.
- Keep the diff to the reported problem. Unrelated findings get their own issue.
- When a review finds a second code path for the same defect, treat it as a missing test rather than a misunderstanding, and enumerate every reader of the data before touching the first one.
中文:RAG 系统工程与 Go 后端,向上游 RAGFlow 提交修复(文档摄入与分块、文档引擎连接器、SSE 流式);研究 RAG 生成的答案是否真正被检索到的证据支持。
