Illustration drawn by RepoMasters from the repo’s ID and its language color. Credits
AlphaUncommon

NanGePlus/RagLangChainTest

在本项目中模拟健康档案私有知识库构建和检索全流程,通过一份代码实现了同时支持多种大模型(如OpenAI、阿里通义千问等)的RAG(检索增强生成)功能:(1)离线步骤:文档加载->文档切分->向量化->灌入向量数据库;在线步骤:获取用户问题->用户问题向量化->检索向量数据库->将检索结果和用户问题填入prompt模版->用最终的prompt调用LLM->由LLM生成回复

Owner
NanGePlus (personal account)
Stars
Stars: 352
Forks
Forks: 71
Language
Python
License
None
Created
2024
Tier
Alpha (250 to 699 ★) What this tier means
View on GitHub

More repos by NanGePlus

All 13 repos by NanGePlus

Nearby in Python

All Python repos