wenda-LLM / wenda

闻达:一个LLM调用平台。目标为针对特定环境的高效内容生成,同时考虑个人和中小企业的计算资源局限性,以及知识安全和私密性问题
GNU Affero General Public License v3.0
6.22k stars 809 forks source link

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

Open hahajinghuayuan opened 11 months ago

hahajinghuayuan commented 11 months ago

原以为是在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 commented 11 months ago

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

maochunyi commented 7 months ago

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