finish readme 修订
This commit is contained in:
@ -1,29 +0,0 @@
|
||||
import os
|
||||
import codecs
|
||||
import json
|
||||
|
||||
def add_toc(ipynb_file):
|
||||
f = codecs.open(ipynb_file, 'r')
|
||||
source = f.read()
|
||||
y = json.loads(source)
|
||||
toc = ["\n"]
|
||||
for item in y["cells"]:
|
||||
if item["cell_type"]=='markdown':
|
||||
item_start = item['source'][0].strip("\n")
|
||||
if item_start.startswith("#"):
|
||||
l = len(item_start.split()[0])
|
||||
if l<=3 and l>1:
|
||||
name = " ".join(item_start.split(" ")[1:])
|
||||
tag = "-".join(item_start.split(" ")[1:])
|
||||
tab = " "*(l-2)
|
||||
toc.append(f' {tab}- [{name}](#{tag})\n')
|
||||
|
||||
y["cells"][0]['source']= y["cells"][0]['source'][0:1]
|
||||
y["cells"][0]['source'].extend(toc)
|
||||
f = codecs.open(ipynb_file, 'w')
|
||||
f.write(json.dumps(y))
|
||||
f.close()
|
||||
|
||||
for file in os.listdir("."):
|
||||
if file.endswith("ipynb") and file[0].isdigit():
|
||||
add_toc(file)
|
||||
@ -1 +1,14 @@
|
||||
吴恩达新课程《Langchain Chat with Your Data》
|
||||
# 吴恩达新课程《Langchain Chat with Your Data》
|
||||
|
||||
吴恩达《LangChain Chat With your Data》课程中文版,主要内容为在 LangChain 应用开发课程基础上,讲解如何使用 LangChain 来整合自己的私有数据,包括:加载并切割本地文档;向量数据库与词向量;检索回答;基于私有数据的问答与聊天等。
|
||||
|
||||
**目录:**
|
||||
|
||||
1. 简介 Introduction @Joye
|
||||
2. 加载文档 Document Loading @Joye
|
||||
3. 文档切割 Document Splitting @苟晓攀
|
||||
4. 向量数据库与词向量 Vectorstores and Embeddings @Puppet、仲泰
|
||||
5. 检索 Retrieval @Puppet
|
||||
6. 问答 Question Answering @邹雨衡
|
||||
7. 聊天 Chat @高立业
|
||||
8. 总结 Summary @高立业
|
||||
Reference in New Issue
Block a user