Repository navigation
Implement retrieval_test in GO - #14231
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughConvert search APIs to strongly typed SearchRequest/SearchResult, implement a RetrievalService with hybrid retrieval and reranking, add tenant-aware model resolution and chat/rerank factory support, introduce LLM-driven metadata filtering and prompt rendering, add multi-message chat driver support, and update engines, utilities, and many service/DAO layers accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant ChunkSvc as ChunkService
participant MetaSvc as MetadataService
participant LLM as LLMModel
participant NLPR as RetrievalService
participant Engine as DocEngine
participant Rerank as RerankModel
Client->>ChunkSvc: RetrievalTest(request)
ChunkSvc->>MetaSvc: ApplyMetaDataFilter(question, meta)
MetaSvc->>LLM: GenMetaFilter(prompt)
LLM-->>MetaSvc: filter conditions
MetaSvc-->>ChunkSvc: filtered docIDs
ChunkSvc->>LLM: KeywordExtraction / CrossLanguages
LLM-->>ChunkSvc: keywords / translated query
ChunkSvc->>NLPR: Retrieval(SearchRequest)
NLPR->>Engine: Search(*types.SearchRequest)
Engine-->>NLPR: SearchResult (chunks, total)
NLPR->>Rerank: Rerank(chunks, total, rankFeature)
Rerank-->>NLPR: similarity scores
NLPR->>NLPR: apply scores, sort, paginate
NLPR-->>ChunkSvc: RetrievalResult(chunks, docAggs)
ChunkSvc-->>Client: RetrievalTestResponse(ranks with total, labels)
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
7602b85 to
c0bc1cb
Compare
What problem does this PR solve?
Implement retrieval_test in GO
Type of change