sugarforever / chat-ollama

ChatOllama is an open source chatbot based on LLMs. It supports a wide range of language models, and knowledge base management.
MIT License
2.64k stars 412 forks source link

改善建议:Knowledge Bases Name同一个可以多回追加文件 #201

Open liushuang393 opened 7 months ago

liushuang393 commented 7 months ago

Knowledge Bases Name同一个可以追加多个文件呢,方便对同一个类型的问题进行维护,而不是把文件删除后 再追加

sugarforever commented 7 months ago

感谢建议,最新版本已支持。请参考如下PR:

207

wgong commented 6 months ago

I tested this feature by using update, it failed to add a pdf to an existing:

Created knowledge base ram-order: 11
Creating embeddings for Ollama served model: nomic-embed-text
Creating Chroma vector store
Initializing vector store retriever
1 documents added to collection collection_11.
KnowledgeBaseFile with ID:  6
Ollama:  { host: 'http://127.0.0.1:11434', username: null, password: null }
Ollama:  { host: 'http://localhost:11434', username: null, password: null }

 WARN  [Vue Router warn]: No match found for location with path "/api/knowledgebases/11"

 WARN  [Vue Router warn]: No match found for location with path "/api/knowledgebases/11"

 WARN  [Vue Router warn]: No match found for location with path "/api/knowledgebases/11" (repeated 2 times)
satrong commented 6 months ago

@wgong 已处理,需要等合并代码

sugarforever commented 6 months ago

已合并

sugarforever commented 6 months ago

是我将 index.put.ts 更改为 [id].put.ts 后,忘记将新文件加到代码仓库里。

@satrong 感谢帮忙恢复。