RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Go: update build.sh and development.md (#19448)
Jin Haid5a89c324c47
diff --git a/build.sh b/build.shindex f7b82a474a..ed91bcf540 100755--- a/build.sh+++ b/build.sh@@ -403,7 +403,8 @@ build_go() {local strip_flags=()[ -n "$STRIP_SYMBOLS" ] && strip_flags=(-ldflags="-s -w")- echo "Building RAGFlow binary: $RAGFLOW_CLI_BINARY and $RAGFLOW_SERVER_BINARY"+ echo "Building RAGFlow binary: $RAGFLOW_CLI_BINARY, $RAGFLOW_SERVER_BINARY"+ set -xGOPROXY=${GOPROXY:-https://goproxy.cn,https://proxy.golang.org,direct} CGO_ENABLED=1 \go build -tags cgo,static,sonic "${strip_flags[@]}" -o "$RAGFLOW_CLI_BINARY" cmd/ragflow-cli.go@@ -411,6 +412,7 @@ build_go() {CGO_CFLAGS="$CGO_CFLAGS" CGO_LDFLAGS="$CGO_LDFLAGS" \go build -tags cgo,static,sonic "${strip_flags[@]}" -o "$RAGFLOW_SERVER_BINARY" \cmd/ragflow_server.go+ set +xif [ ! -f "$RAGFLOW_SERVER_BINARY" ]; thendiff --git a/internal/development.md b/internal/development.mdindex 74ca09da0f..37a39164dc 100644--- a/internal/development.md+++ b/internal/development.md@@ -39,17 +39,7 @@ go version### 1.4 Install dependent library```shellsudo apt install libpcre2-dev-# Native libs for the Go build (office_oxide, pdfium, pdf_oxide, onnxruntime).-# download_go_deps.py is the Go-end script: it now fetches the ONNX Runtime-# static lib too, so this single command covers every native dependency the-# Go server binary needs (incl. the in-process DeepDoc backend).-# It also fetches the Go model weights (four .ort + ocr.res) into rag/res/deepdoc/ (see §1.6).python3 ragflow_deps/download_go_deps.py-# Shared (Go + Python) deps. Retains ONNX Runtime for the ragflow_deps image /-# backward-compat; also pulls Python-side artifacts (models, nltk, tika, ...).-# Its InfiniFlow/deepdoc snapshot carries BOTH weight formats: .ort (Go) and-# .onnx (Python).-uv run python3 ragflow_deps/download_deps.py```> **Note**: If you use IDEs like GoLand to run/debug directly (via Run/Debug buttons), or run `go build` / `go run` from command line, set these CGO environment variables:@@ -141,10 +131,10 @@ The Go backend loads **`.ort`** (FlatBuffer) weights; the Python side loads**`.onnx`**. Both formats live side by side in `rag/res/deepdoc/` — neithersupersedes the other, so do not delete one to "clean up".-| | Go (in-process) | Python |-|---|---|---|-| Format | `.ort` | `.onnx` |-| Files | `det.ort`, `layout.ort`, `tsr.ort`, `rec.ort`, `ocr.res` | `det.onnx`, `layout.onnx`, `tsr.onnx`, `rec.onnx`, `ocr.res` |+| | Go (in-process) | Python |+|--------|----------------------------------------------------------|--------------------------------------------------------------|+| Format | `.ort` | `.onnx` |+| Files | `det.ort`, `layout.ort`, `tsr.ort`, `rec.ort`, `ocr.res` | `det.onnx`, `layout.onnx`, `tsr.onnx`, `rec.onnx`, `ocr.res` |`download_go_deps.py` (§1.4) fetches the five required files — four `.ort` plus`ocr.res` — into `rag/res/deepdoc/`; `download_deps.py` snapshots the whole