Skip to content

About

A RAG notebook projects, Which is used in China

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG-python-notebook

A RAG notebook projects, Which is used in China

设置环境变量

使用SILLICONFLOW

export  SILLICONFLOW_API_KEY=sk-xxxxxxxxx

运行notebook

$pip install -r requirements.txt
$jupyter notebook

RAG Fusion

使用

  1. 余弦向量
  2. BM25 索引
  3. 融合前两者,权重各50%

获取与问题相关度前5个最高的,进行上下文构建,然后生成对应的答案。结果看fusion_rag_result.md

$python funsion_rag.py 

About

A RAG notebook projects, Which is used in China

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages