Skip to content

基于Spring AI 和 PGvector 实现的检索增强生成(RAG)对话接口demo

Notifications You must be signed in to change notification settings

NingNing0111/vector-database-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 这是Spring AI的使用demo,使用PGVector作为向量数据库。

介绍

  • 将PDF内容向量化并保存在向量数据库中,本Demo使用的是PGVector;
  • 调用对话前根据问题从向量数据库中检索最相似的几条记录;
  • 封装数据,一并返回给大语言模型
  • 大语言模型根据上下文数据进行回复

效果图

 以24年合工大软工实训的pdf文件为例,通过向chatgpt提问与文档内容相关的问题。

img.png

img_1.png

img_2.png

About

基于Spring AI 和 PGvector 实现的检索增强生成(RAG)对话接口demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages