#添加RAG curl --location --request POST 'http://127.0.0.1:8000/rag/add' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data-raw '{ "id": 0, "workspaceId": 0, "name": "string", "embeddingData": "string", "type": "METRIC" }' #批量添加RAG curl --location --request POST 'http://127.0.0.1:8000/rag/addBatch' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data-raw '[ { "id": 0, "workspaceId": 0, "name": "string", "embeddingData": "string", "type": "METRIC" } ]' #更新RAG curl --location --request POST 'http://127.0.0.1:8000/rag/update' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data-raw '{ "id": 0, "workspaceId": 0, "name": "string", "embeddingData": "string", "type": "METRIC" }' #删除RAG curl --location --request POST 'http://127.0.0.1:8000/rag/delete' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data-raw '{ "id": 0, "type": "METRIC" }' #检索RAG curl --location --request POST 'http://127.0.0.1:8000/rag/retrieve' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data-raw '{ "query": "string", "num": 0, "workspaceId": 0, "type": "METRIC" }'