Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuchentime/deepchatai
基于费曼学习法构建的RAG应用。采用spring ai作为构建框架,并集合了智谱AI和neo4j向量数据库
https://github.com/yuchentime/deepchatai
neo4j springai zhipuai
Last synced: 16 days ago
JSON representation
基于费曼学习法构建的RAG应用。采用spring ai作为构建框架,并集合了智谱AI和neo4j向量数据库
- Host: GitHub
- URL: https://github.com/yuchentime/deepchatai
- Owner: yuchentime
- Created: 2024-10-17T14:40:24.000Z (21 days ago)
- Default Branch: master
- Last Pushed: 2024-10-20T16:26:33.000Z (18 days ago)
- Last Synced: 2024-10-20T19:28:40.976Z (18 days ago)
- Topics: neo4j, springai, zhipuai
- Language: Java
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 使用前置
- 安装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
```