Skip to content

Commit 72d7053

Browse files
committed
docs(tech): 添加 GraphRAG 相关文档并更新 Docker镜像
- 新增 GraphRAG 文档,介绍知识图谱增强的 RAG 模型 - 更新 Dockerfile,构建包含 Apache 服务器的 CentOS 7镜像 - 修改 docker-compose.yml,调整服务配置 - 新增 centos 目录,包含 Dockerfile 和 index.html 文件 - 更新 .gitignore,添加 .history 目录到忽略列表 - 更新 SUMMARY.md,添加 GraphRAG 文档链接
1 parent 278d8cc commit 72d7053

File tree

9 files changed

+91
-20
lines changed

9 files changed

+91
-20
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ _book
2222
# IDEA
2323
*.iml
2424
.idea
25-
25+
.history
2626
# Eclipse
2727
target/
2828
.settings/

Java技术学习.xmind

140 KB
Binary file not shown.

SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@
412412
* [人工智能](docs/tech/AI/ArtificialIntelligence人工智能.md)
413413
* [CloudComputing云计算](docs/tech/others/CloudComputing云计算.md)
414414
* [EdgeComputing边缘计算](docs/tech/others/EdgeComputing边缘计算.md)
415+
* [GraphRAG](docs/tech/AI/GraphRAG.md)
415416

416417
* [前端开发](docs/tech/Front/Front前端.md)
417418
* VueJS

docs/English/计算机专业英语.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
---------------------------------------------------------------------------------------------------------------------
55

6+
RAG:Retrieval-Augmented Generation (RAG),检索增强式生成(RAG)
7+
8+
GraphRAG:图谱检索增强生成(GraphRAG)(知识图谱,不是简单的图的意思,图谱是多个维度的知识图谱)
9+
10+
LLM/LLMs (Large Language Models) 大型语言模型
611

712

813

@@ -26,4 +31,7 @@ https://github.com/HurleyJames/Computer-English-Words
2631
https://github.com/qomumu/JEnglish/blob/master/unit-1/1.md
2732

2833

29-
https://github.com/EarsEyesMouth/computerese-cross-referencesgi
34+
https://github.com/EarsEyesMouth/computerese-cross-referencesgi
35+
36+
37+

docs/tech/AI/GraphRAG.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
一般而言,RAG 使用向量相似性作为搜索,称之为 Baseline RAG(基准RAG)。但 Baseline RAG 在某些情况下表现并不完美。
3+
4+
GraphRAG = 知识图谱 + RAG
5+
6+
我相信 GraphRAG 将取代仅向量 RAG,成为大多数用例的默认 RAG 架构。
7+
8+
典型 RAG 的核心是向量搜索,也就是根据输入的文本块从候选的书面材料中找到并返回概念相似的文本。这种自动化很好用,基本的搜索都大有用途。
9+
10+
11+
GraphRAG 方法可以归结为:利用大型语言模型 (LLMs) 从数据来源中提取知识图谱;将此图谱聚类成不同粒度级别的相关实体社区;对于 RAG 操作,遍历所有社区以创建“社区答案”,并进行缩减以创建最终答案。
12+
13+
14+
15+
16+
https://juejin.cn/post/7392115478561325083
17+
18+
https://www.jiqizhixin.com/articles/2024-07-15-13
19+
20+
21+
https://www.53ai.com/news/qianyanjishu/2024070997368.html

docs/tech/Container/dockercompose/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ COPY target/$APP $APP
77

88
EXPOSE 8080
99

10-
ENTRYPOINT java -Dspring.profiles.active=docker -Dhll.consul.host=consul -Dhll.consul.port=8500 -Dhll.app.id=jsonrpc-provider-svc -Dhll.env=dev -jar $APP
10+
ENTRYPOINT java -Dspring.profiles.active=docker -jar $APP
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,55 @@
1+
#基于的基础镜像
12
FROM centos:7
23

3-
MAINTAINER yangzl <[email protected]>
4+
#维护镜像的用户信息
5+
LABEL maintainer="yangzl [email protected]"
46

5-
ENV LANG=zh_CN.UTF-8 \
6-
LANGUAGE=zh_CN:zh \
7-
LC_ALL=zh_CN.UTF-8
7+
USER root
88

9+
#ENV LANG=zh_CN.UTF-8 \
10+
# LANGUAGE=zh_CN:zh \
11+
# LC_ALL=zh_CN.UTF-8
912
ENV MYPATH /usr/local
13+
1014
WORKDIR $MYPATH
1115

12-
RUN yum -y install vim
13-
RUN yum -y install git
16+
#镜像操作指令安装apache软件
17+
RUN yum -y install httpd \
18+
&& echo "ServerName localhost" >> /etc/httpd/conf/httpd.conf \
19+
&& yum -y install vim \
20+
&& yum -y install git \
21+
&& git config --global user.name yangzl \
22+
&& git config --global user.email [email protected]
23+
24+
# RUN yum -y update \
25+
# && yum -y install httpd \
26+
# && yum -y install vim \
27+
# && yum -y install git \
28+
# && git config --global user.name yangzl \
29+
# && git config --global user.email [email protected]
1430

15-
#RUN yum -y install vim
1631
#RUN yum install -y net-tools
1732
#RUN yum install -y ncurses
1833

19-
#EXPOSE 80
34+
# COPY index.html /var/www/html/
2035

2136
# 在容器中运行指定的命令。
22-
CMD [ "git", "config", "--global", "user.name", "yangzl" ]
23-
CMD [ "git", "config", "--global", "user.email", "[email protected]" ]
37+
ENTRYPOINT [ "/usr/sbin/httpd" ]
38+
CMD ["-D", "FOREGROUND"]
39+
40+
#开启 80 端口
41+
EXPOSE 80
42+
43+
# 测试
44+
# 生成镜像,注意别忘了末尾有"."
45+
# docker build -f Dockerfile -t test/centos7_httpd .
46+
# 新镜像运行容器
47+
# docker run --name centos7-httpd -v /Users/quarks:/usr/local/yangzl -p 1216:80 -dit test/centos7_httpd
48+
# 用这个命令,会覆盖CMD,httpd就起不来了
49+
# docker run --name centos7 -v /Users/quarks:/usr/local/yangzl -p 1216:80 -it test/centos7_v2 /bin/bash
2450

25-
CMD /bin/bash
51+
# 外主机测试
52+
# http://192.168.61.11:1216/
2653

27-
#docker build -t yore/centos7_v1 .
28-
#docker run --name centos7 -v /Users/quarks:/usr/local/yangzl -it yore/centos7_v1 /bin/bash
29-
#docker rm -f centos7
54+
#测试后清理容器
55+
#docker rm -f centos7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<!DOCTYPE html>
4+
<html>
5+
<!DOCTYPE html>
6+
<html>
7+
<body>
8+
<h1>Newstar Corporation</h1>
9+
</body>
10+
</html>

docs/tech/Container/dockercompose/docker-compose.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
version: "3"
1+
version: "3.8"
22

33
services:
4-
consumer:
4+
centos72:
5+
# image: test/centos7
56
build:
67
context: ./centos
78
dockerfile: Dockerfile
9+
container_name: centos7-container_name
810
ports:
9-
- "9002:9002"
11+
- "4444:4444"
12+
volumes:
13+
- /Users/quarks:/usr/local/yangzl
14+
tty: true
1015
# depends_on:
1116
# - consul
1217
# - provider-grpc

0 commit comments

Comments
 (0)