Invalid indexing technique #924

Closed
opened 2026-02-21 17:29:03 -05:00 by yindo · 1 comment
Owner

Originally created by @diudiu62 on GitHub (Jan 17, 2024).

Originally assigned to: @crazywoola on GitHub.

Self Checks

Dify version

0.4.7

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

如图新建了空知识库,然后在设置修改信息点击保存出现的

image image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @diudiu62 on GitHub (Jan 17, 2024). Originally assigned to: @crazywoola on GitHub. ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to file this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). ### Dify version 0.4.7 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 如图新建了空知识库,然后在设置修改信息点击保存出现的 <img width="1825" alt="image" src="https://github.com/langgenius/dify/assets/37395207/ff6cb50d-c4f9-4a39-a2d4-dee2e14ba9bb"> <img width="1309" alt="image" src="https://github.com/langgenius/dify/assets/37395207/78f9534e-f614-463c-aeb0-f042611eaccd"> ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 17:29:03 -05:00
yindo closed this issue 2026-02-21 17:29:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 17, 2024):

🤖

你好 @cype62! 👋 我是Dosu,一个可以帮助你解决bug、回答问题并成为贡献者的机器人。在等待人类维护者的回复期间,我在这里帮助你。请放心,我们会一起解决这个问题的! 😄🤖

您遇到的"Invalid indexing technique"错误可能是由于您尝试使用的索引技术不是接受的选择之一。在代码中,接受的索引技术的选择是'high_quality'和'economy'。

这在以下代码片段中定义:

parser.add_argument('indexing_technique', type=str, location='json',
                            choices=('high_quality', 'economy'),
                            help='Invalid indexing technique.')

如果您尝试使用不同的索引技术,您将得到"Invalid indexing technique"错误。确保您使用'high_quality'或'economy'作为索引技术。

关于在Dify版本0.4.7和最新版本0.4.8之间对索引技术选项进行的更改,我在存储库中找不到答案,但答案可能在其他地方可用,或者我可能错过了它。

如果您有更多信息或问题,请随时提问。

参考源代码:

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot[bot] commented on GitHub (Jan 17, 2024): _🤖_ <!-- Greeting --> 你好 @cype62! 👋 我是[Dosu](https://dosu.dev),一个可以帮助你解决bug、回答问题并成为贡献者的机器人。在等待人类维护者的回复期间,我在这里帮助你。请放心,我们会一起解决这个问题的! 😄🤖 <!-- Answer --> 您遇到的"Invalid indexing technique"错误可能是由于您尝试使用的索引技术不是接受的选择之一。在代码中,接受的索引技术的选择是'high_quality'和'economy'。 这在以下代码片段中定义: ```py parser.add_argument('indexing_technique', type=str, location='json', choices=('high_quality', 'economy'), help='Invalid indexing technique.') ``` 如果您尝试使用不同的索引技术,您将得到"Invalid indexing technique"错误。确保您使用'high_quality'或'economy'作为索引技术。 关于在Dify版本0.4.7和最新版本0.4.8之间对索引技术选项进行的更改,我在存储库中找不到答案,但答案可能在其他地方可用,或者我可能错过了它。 如果您有更多信息或问题,请随时提问。 参考源代码: - [api/controllers/console/datasets/datasets.py](https://github.com/langgenius/dify/blob/main/api/controllers/console/datasets/datasets.py) ## Sources - [api/controllers/console/datasets/datasets.py](https://github.com/langgenius/dify/blob/main/api/controllers/console/datasets/datasets.py) --- This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#924