Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(examples): use PATCH for chunk update in chunk_example.sh (#21037)

Jean-Rémi Larcelet-Prostd37547278050
diff --git a/example/http/chunk_example.sh b/example/http/chunk_example.sh
index 98bbde81f3..f84787b8e8 100644
--- a/example/http/chunk_example.sh
+++ b/example/http/chunk_example.sh
@@ -62,7 +62,7 @@ curl -s --request GET \
# 3. Update a chunk
echo -e "\n-- Update a chunk"
-curl -s --request PUT \
+curl -s --request PATCH \
--url "${HOST_ADDRESS}/api/v1/datasets/${DATASET_ID}/documents/${DOC_ID}/chunks/${CHUNK_ID}" \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer ${API_KEY}" \