curl -X POST localhost:8080/api/ner \
-H "Content-Type: application/json" \
-d '{"text": "2021年HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。阿婆主来到北京立方庭参观自然语义科技公司。"}'curl -X POST localhost:8080/api/ner \
-H "Content-Type: application/json" \
-d '{"text": "检查变压器接地线是否连接1000千伏变电站的断路器。"}'curl 'http://127.0.0.1:8081/ner' \
-H 'Content-Type: application/json' \
--data-raw '{"text":"2021年HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。阿婆主来到北京立方庭参观自然语义科技公司。"}'curl 'http://127.0.0.1:8081/ner' \
-H 'Content-Type: application/json' \
--data-raw '{"text":"检查变压器接地线是否连接1000千伏变电站的断路器。"}'curl -X POST localhost:8080/api/kgc \
-H "Content-Type: application/json" \
-d '{"head": "输电线路", "relation": "连接", "tail": ""}'curl -X GET localhost:8080/api/kgc/benchmark \
-H "Content-Type: application/json"curl -X GET localhost:8081/kgc_benchmark \
-H "Content-Type: application/json"curl -X POST localhost:8080/api/kb/add \
-H "Content-Type: application/json" \
-d '{"name": "santi"}'curl -X POST localhost:8080/api/kb/delete \
-H "Content-Type: application/json" \
-d '{"name": "santi"}'curl localhost:8080/api/kbcurl -X POST localhost:8080/api/kb/indexing \
-H "Content-Type: application/json" \
-d '{"name": "raggo"}'curl -X POST localhost:8080/api/db \
-H "Content-Type: application/json" \
-d '{"kb": "raggo"}'# dont use it easily
curl -X POST localhost:8080/api/db/delete \
-H "Content-Type: application/json" \
-d '{"kb": "raggo", "name": "yyyyMMdd-hhmmss"}'curl -X POST localhost:8080/api/db/logs \
-H "Content-Type: application/json" \
-d '{"kb": "raggo", "db": "yyyyMMdd-hhmmss"}'需要使用绝对路径
python -m graphrag.query \
--config $(pwd)/kb/raggo/settings.yaml \
--data $(pwd)/kb/raggo/output/yyyyMMdd-hhmmss/artifacts \
--method local \
--response_type "Single Paragraph" \
"Who is Scrooge and what are his main relationships?"curl -X POST localhost:8080/api/query \
-H "Content-Type: application/json" \
-d '{"kb": "raggo", "timestamp": "yyyyMMdd-hhmmss", "method": "local", "text": "Who is Scrooge and what are his main relationships?"}'python -m graphrag.query \
--config $(pwd)/kb/raggo/settings.yaml \
--data $(pwd)/kb/raggo/output/yyyyMMdd-hhmmss/artifacts \
--method global \
--response_type "Single Paragraph" \
"What are the top themes in this story?"curl -X POST localhost:8080/api/query \
-H "Content-Type: application/json" \
-d '{"kb": "raggo", "timestamp": "yyyyMMdd-hhmmss", "method": "global", "text": "Who is Scrooge, and what are his main relationships?"}'