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

fix: einoagentcli run failed with eino:doc:vector_index: no such index #38

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cfc4n
Copy link

@cfc4n cfc4n commented Mar 6, 2025

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

修复: 首次运行einoagentcli时,报错: eino:doc:vector_index: no such index

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: When starting the Agent directly, the Redis vector database is allowed to be empty, but the index name must exist. Therefore, when starting the Agent, you need to first determine whether the index exists and perform related initialization actions.
zh(optional): 直接启动Agent时,允许Redis的向量数据库内为空,但索引名字必需存在,所以,需要在Agent启动时,先判断是否存在索引,以及做相关初始化动作。

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@cfc4n cfc4n changed the title fix: einoagentcli run fix: einoagentcli run failed with eino:doc:vector_index: no such index Mar 6, 2025
@meguminnnnnnnnn
Copy link
Contributor

Hi,运行这个demo有两个启动路径,1. 使用我们提供的eino assistant redis镜像 或者 2. 执行knowledgeindexing初始化redis

这里的首要考虑在于让试用者学习到redis retriever的原理,而不是提供一个很健壮的程序。 因此我觉得隐式初始化redis不是很好的选择。

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

Successfully merging this pull request may close these issues.

3 participants