Skip to content

基于费曼学习法构建的RAG应用。采用spring ai作为构建框架,并集合了智谱AI和neo4j向量数据库

Notifications You must be signed in to change notification settings

yuchentime/deepchatai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用前置

  • 安装Neo4j
  • 智谱清言api key

Neo4j相关配置

访问http://{IP地址}:7474/browser/,在命令输入栏中,执行如下创建索引命令。

创建索引

CREATE VECTOR INDEX deepReflectionChat IF NOT EXISTS
FOR (m:DeepReflectionChat)
ON m.embedding
OPTIONS { indexConfig: {
 `vector.dimensions`: 1024,
 `vector.similarity_function`: 'cosine'
}}

其他常用语句

-- 查询label是‘DeepReflectionChat’的前25条记录
MATCH (n:DeepReflectionChat) RETURN n LIMIT 25

-- 删除索引
drop index deepReflectionChat

-- 查询所有索引
SHOW VECTOR INDEXES

-- 删除所有数据
MATCH (n)
DETACH DELETE n

About

基于费曼学习法构建的RAG应用。采用spring ai作为构建框架,并集合了智谱AI和neo4j向量数据库

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages