Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问在哪修改知识库的保存路径? #496

Open
hahajinghuayuan opened this issue Sep 23, 2023 · 2 comments
Open

请问在哪修改知识库的保存路径? #496

hahajinghuayuan opened this issue Sep 23, 2023 · 2 comments

Comments

@hahajinghuayuan
Copy link

原以为是在gen_data_st.py文件的
try:
vectorstore_old = Vectorstore.load_local(
'autodl-tmp/zhishiku/memory/default', embeddings=embeddings)

'memory/default', embeddings=embeddings)

success_print("合并至已有索引。如不需合并请删除 memory/default 文件夹")
vectorstore_old.merge_from(vectorstore)
#vectorstore_old.save_local('memory/default')
vectorstore_old.save_local('autodl-tmp/zhishiku/memory/default')

except:
print("新建索引")
#vectorstore.save_local('memory/default')
vectorstore.save_local('autodl-tmp/zhishiku/memory/default')
success_print("保存完成")

但是修改之后,还是保存在wenda文件夹内,没有修改成功,请问 应该修改哪里?

@hahajinghuayuan
Copy link
Author

大佬们能告诉我 在哪里修改 知识库的路径吗?

@maochunyi
Copy link

gen_data_st.py 里找到 最后几行代码中的 default 改为自己对应的知识库名称,这个自定义知识库名称是在memory下 看自己情况而定 选择哪个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants