test(retrieval): 增加检索测试数据与单元端到端测试

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
yxx
2026-08-27 19:24:20 +08:00
co-authored by Claude
parent 6b16ad1a08
commit dbcb94b413
7 changed files with 347 additions and 0 deletions
@@ -0,0 +1,18 @@
---
title: RAG 检索增强与引用定位
tags: RAG, 产品
---
# RAG 概述
检索增强生成先检索相关文档块,再交给大模型生成回答。
## Citation 引用
每个搜索结果附带 Citation,包含文件路径与起止偏移量。
前端可根据偏移量跳转到笔记中的原始位置。
## Reranker 精排
粗排后使用 Reranker 对候选块重新打分,提升相关性。