d623b8590e
混合检索从 2 路(向量+全文)升级为 3 路(+图谱)。入库时 LLM 抽实体/关系建 Neo4j 图,检索时图谱路(实体关联三元组)融进 RRF;UI 可视化图谱。 - mcp-go rag: chat.go(OpenAI 兼容非流式 chat 客户端,抽取用) + graph.go(neo4j-go-driver 连接 + LLM 抽三元组 + MERGE 实体/关系 + 图谱召回/全量三元组) + rag.go(Config 结构; graph+chat 路;Ingest 加 抽实体/写Neo4j 阶段;Search 三路 RRF 融合;SetChat 热更新) - mcp-go: Neo4j env(默认 neo4j://localhost:7687, neo4j/sundynix);订阅 chat 控制面配置 (复用 DeepSeek 做抽取);新工具 kb_graph(返回三元组) - gateway: GET /api/v1/kb/graph;frontend KbView 知识图谱面板(实体—关系→实体) - 验证: 全模块 build✓ + e2e PASS; live——入库'sundynix用Milvus...'→DeepSeek 抽 4 三元组 →Neo4j(8 实体);检索三路融合 向量=4 全文=2 图谱=1;浏览器图谱面板渲染 4 三元组 - 边界: 实体链接用 CONTAINS 朴素匹配(可升级 LLM 查询实体抽取);全文/图谱重启随入库重建 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
80 lines
3.5 KiB
Modula-2
80 lines
3.5 KiB
Modula-2
module github.com/sundynix/sundynix-mcp-go
|
|
|
|
go 1.24
|
|
|
|
require (
|
|
github.com/blevesearch/bleve/v2 v2.4.2
|
|
github.com/milvus-io/milvus-sdk-go/v2 v2.4.1
|
|
github.com/neo4j/neo4j-go-driver/v5 v5.24.0
|
|
github.com/redis/go-redis/v9 v9.20.0
|
|
github.com/sundynix/sundynix-shared v0.0.0
|
|
gorm.io/driver/postgres v1.6.0
|
|
gorm.io/gorm v1.31.1
|
|
)
|
|
|
|
require (
|
|
github.com/RoaringBitmap/roaring v1.9.3 // indirect
|
|
github.com/bits-and-blooms/bitset v1.12.0 // indirect
|
|
github.com/blevesearch/bleve_index_api v1.1.10 // indirect
|
|
github.com/blevesearch/geo v0.1.20 // indirect
|
|
github.com/blevesearch/go-faiss v1.0.20 // indirect
|
|
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
|
|
github.com/blevesearch/gtreap v0.1.1 // indirect
|
|
github.com/blevesearch/mmap-go v1.0.4 // indirect
|
|
github.com/blevesearch/scorch_segment_api/v2 v2.2.15 // indirect
|
|
github.com/blevesearch/segment v0.9.1 // indirect
|
|
github.com/blevesearch/snowballstem v0.9.0 // indirect
|
|
github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect
|
|
github.com/blevesearch/vellum v1.0.10 // indirect
|
|
github.com/blevesearch/zapx/v11 v11.3.10 // indirect
|
|
github.com/blevesearch/zapx/v12 v12.3.10 // indirect
|
|
github.com/blevesearch/zapx/v13 v13.3.10 // indirect
|
|
github.com/blevesearch/zapx/v14 v14.3.10 // indirect
|
|
github.com/blevesearch/zapx/v15 v15.3.13 // indirect
|
|
github.com/blevesearch/zapx/v16 v16.1.5 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/cockroachdb/errors v1.9.1 // indirect
|
|
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f // indirect
|
|
github.com/cockroachdb/redact v1.1.3 // indirect
|
|
github.com/getsentry/sentry-go v0.12.0 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 // indirect
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
github.com/golang/snappy v0.0.1 // indirect
|
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/pgx/v5 v5.6.0 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/jinzhu/now v1.1.5 // indirect
|
|
github.com/json-iterator/go v1.1.9 // indirect
|
|
github.com/klauspost/compress v1.17.9 // indirect
|
|
github.com/kr/pretty v0.3.0 // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/milvus-io/milvus-proto/go-api/v2 v2.4.3 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.1 // indirect
|
|
github.com/mschoch/smat v0.2.0 // indirect
|
|
github.com/nats-io/nats.go v1.37.0 // indirect
|
|
github.com/nats-io/nkeys v0.4.7 // indirect
|
|
github.com/nats-io/nuid v1.0.1 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/rogpeppe/go-internal v1.8.1 // indirect
|
|
github.com/tidwall/gjson v1.14.4 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.0 // indirect
|
|
go.etcd.io/bbolt v1.3.7 // indirect
|
|
go.uber.org/atomic v1.11.0 // indirect
|
|
golang.org/x/crypto v0.31.0 // indirect
|
|
golang.org/x/net v0.21.0 // indirect
|
|
golang.org/x/sync v0.10.0 // indirect
|
|
golang.org/x/sys v0.30.0 // indirect
|
|
golang.org/x/text v0.21.0 // indirect
|
|
google.golang.org/genproto v0.0.0-20220503193339-ba3ae3f07e29 // indirect
|
|
google.golang.org/grpc v1.48.0 // indirect
|
|
google.golang.org/protobuf v1.30.0 // indirect
|
|
)
|
|
|
|
replace github.com/sundynix/sundynix-shared => ../sundynix-shared
|