test(retrieval): 增加检索测试数据与单元端到端测试
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: RAG 检索增强与引用定位
|
||||
tags: RAG, 产品
|
||||
---
|
||||
|
||||
# RAG 概述
|
||||
|
||||
检索增强生成先检索相关文档块,再交给大模型生成回答。
|
||||
|
||||
## Citation 引用
|
||||
|
||||
每个搜索结果附带 Citation,包含文件路径与起止偏移量。
|
||||
|
||||
前端可根据偏移量跳转到笔记中的原始位置。
|
||||
|
||||
## Reranker 精排
|
||||
|
||||
粗排后使用 Reranker 对候选块重新打分,提升相关性。
|
||||
Reference in New Issue
Block a user