Jin Hai
1880e65e99
Go: refactor ( #16602 )
...
### Summary
1. update doc
2. refactor route code
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-03 17:00:43 +08:00
qinling0210
133b1e15fd
Port agent PRs to GO ( #16529 )
...
### Summary
Port the following PRs to GO in this PR
https://github.com/infiniflow/ragflow/pull/14210
https://github.com/infiniflow/ragflow/pull/14641
https://github.com/infiniflow/ragflow/pull/15220
https://github.com/infiniflow/ragflow/pull/15228
https://github.com/infiniflow/ragflow/pull/15384
https://github.com/infiniflow/ragflow/pull/15754
https://github.com/infiniflow/ragflow/pull/16413
https://github.com/infiniflow/ragflow/pull/16483
https://github.com/infiniflow/ragflow/pull/16419
https://github.com/infiniflow/ragflow/pull/16361
https://github.com/infiniflow/ragflow/pull/16050
2026-07-02 09:45:01 +08:00
Zhichang Yu
f58fae5fb7
feat(go-agent): Ported retrieval node, added Keenable web search tool ( #16396 )
...
Ported retrieval node, added Keenable web search tool
- [x] New Feature (non-breaking change which adds functionality)
2026-06-29 09:45:16 +08:00
qinling0210
563d855780
Implement OpenAI chat completions in GO ( #16177 )
...
### What problem does this PR solve?
Implement OpenAI chat completions in GO
POST /api/v1/openai/<chat_id>/chat/completions
OpenAI chat cli: internal/development.md
### Type of change
- [x] Refactoring
2026-06-18 18:07:27 +08:00
Jack
87b8062df4
feat: implement POST /api/v1/searchbots/ask — streaming RAG with citations and think-tag processing ( #15825 )
...
Implements POST /api/v1/searchbots/ask in Go with streaming SSE,
citations, and think-tag processing. 23 files, 90+ unit tests.
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-09 22:48:50 +08:00
Jack
5a04ac0864
feat: Dify-compatible retrieval API endpoint ( #15704 )
...
## Summary
Dify-compatible retrieval API for external knowledge base integration.
## Changes
- **New handler**: DifyRetrievalHandler with POST/GET
/api/v1/dify/retrieval
- **Health check**: GET /api/v1/dify/retrieval/health
- **Full pipeline**: KB validation -> permission check -> embedding ->
metadata filter -> chunk retrieval -> child chunk aggregation ->
optional KG search -> response assembly
- **12 tests** covering all paths (success, errors, metadata filter, KG
mode)
- **Testability**: Handler dependencies defined as interfaces
(KBServiceIface, ModelServiceIface, etc.)
## Files
| File | Type |
|------|------|
| internal/handler/dify_retrieval_handler.go | New — handler +
interfaces |
| internal/handler/dify_retrieval_handler_test.go | New — 12 tests |
| internal/router/router.go | Modified — route registration |
| cmd/server_main.go | Modified — handler wiring |
| internal/service/kg/pipeline.go | Modified — SetChatModel/SetEmbModel
|
| internal/service/kg/retrieval.go | New — helper functions |
| internal/service/kg/scoring.go | Moved from service package |
| internal/service/kg/search.go | New — KG search functions |
| internal/service/kg/types.go | New — type definitions |
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-05 21:16:25 +08:00