MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[BUG]连接的Ollama,每次对话都是回复 抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。

Open sundaqiang opened this issue 10 months ago • 1 comments

联系方式

No response

MaxKB 版本

1.0.0

问题描述

连接的Ollama,每次对话都是回复 抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。

PixPin_2024-04-15_14-39-55

这个是maxkb的日志

/opt/py3/lib/python3.11/site-packages/django/db/models/base.py:364: RuntimeWarning: Model 'dataset.dynamics' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class)

重现步骤

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

sundaqiang avatar Apr 15 '24 06:04 sundaqiang

提示词发一下截图 。然后对话日志中 这个提问看一下有没有引用分段。 一般Ollama的模型提示词接受不了太长的提示词,可以把回答要求简化一下或者去掉,按你的需求填写。

baixin513 avatar Apr 15 '24 06:04 baixin513

我也遇到相同的问题,好像是太久不用,模型从内存释放了,重新加载超时,他就会回答:抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。 1720144780253

能否增加 ollama 模型显存常驻的选项 ? OLLAMA_KEEP_ALIVE

filwu8 avatar Jul 05 '24 01:07 filwu8