fix: einoagentcli run failed with eino:doc:vector_index: no such index #38
+34
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Check the PR title.
(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: