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

knowledge base does not work, although it worked before #11598

Closed
5 tasks done
larkinmd7 opened this issue Dec 12, 2024 · 5 comments
Closed
5 tasks done

knowledge base does not work, although it worked before #11598

larkinmd7 opened this issue Dec 12, 2024 · 5 comments
Labels
🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited

Comments

@larkinmd7
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.13.1

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

There's an error
image

There's an error
image

No error
image

✔️ Expected Behavior

I expected that where there is an “error”, it will be the same as where there is no “error”.
It is necessary to show documents when testing and calling relevant sections of the document.

❌ Actual Behavior

It gives an error and the documents themselves are not visible, the reason for the error is unknown to me.

@dosubot dosubot bot added 🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited labels Dec 12, 2024
Copy link

dosubot bot commented Dec 12, 2024

Hello @larkinmd7! 👋 I'm here to help you with bug reports, questions, and becoming a contributor. If you need any assistance, feel free to ask!

I found a similar closed issue that might be relevant to your problem. The issue involved a shape alignment error during knowledge retrieval testing, specifically "shapes (1536,) and (3072,) not aligned: 1536 (dim 0) != 3072 (dim 0)." The suggested solution was to ensure that the dimensions of the vectors used in the retrieval process are correctly aligned. This involves checking the embedding dimensions and updating the model configuration to ensure consistency. The expected embedding dimension for the vectors used in the knowledge retrieval process is 1536. Additionally, it was recommended to ensure that the single_retrieval_config object is properly initialized and contains the necessary attributes to avoid errors related to missing attributes [1].

You might want to verify the embedding dimensions in your configuration and ensure that they match the expected dimensions. Also, check the initialization of your single_retrieval_config to ensure it is set up correctly.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@crazywoola
Copy link
Member

This happens when the embedding models are not the same, at least some of them are not using the same model, check the settings of each document and try to reindex those documents.

@larkinmd7
Copy link
Author

Привет@larkinmd7! 👋 Я здесь, чтобы помочь вам с отчетами об ошибках, вопросами и стать участником. Если вам нужна помощь, не стесняйтесь спрашивать!

Я нашел похожую закрытую проблему, которая может иметь отношение к вашей проблеме. Проблема заключалась в ошибке выравнивания формы во время тестирования извлечения знаний, а именно "формы (1536,) и (3072,) не выровнены: 1536 (dim 0) != 3072 (dim 0)". Предложенное решение состояло в том, чтобы гарантировать, что измерения векторов, используемых в процессе извлечения, правильно выровнены. Это включает в себя проверку измерений внедрения и обновление конфигурации модели для обеспечения согласованности. Ожидаемое измерение внедрения для векторов, используемых в процессе извлечения знаний, составляет 1536. Кроме того, было рекомендовано гарантировать, что объект single_retrieval_configправильно инициализирован и содержит необходимые атрибуты, чтобы избежать ошибок, связанных с отсутствующими атрибутами [1] .

Вы можете проверить размеры встраивания в вашей конфигурации и убедиться, что они соответствуют ожидаемым размерам. Также проверьте инициализацию вашего, single_retrieval_configчтобы убедиться, что она настроена правильно.

Чтобы продолжить разговор с Досу , упомяните@dosu.

Помогите Dosu учиться! Дайте ему обратную связь: Отличный ответ | Нерелевантный ответ | Неверные источники | Слишком многословно | Галлюцинация | Другое

What exactly do you need to check? I'm a little confused? Is it possible to send screenshots?

@larkinmd7
Copy link
Author

Это происходит, когда модели внедрения не совпадают, по крайней мере некоторые из них не используют одну и ту же модель; проверьте настройки каждого документа и попробуйте переиндексировать эти документы.

что именно нужно проверить? немного не понял? есть возможность прислать скриншоты?

@crazywoola
Copy link
Member

Here is the general settings for the dataset.

image

And here is the setting for the document in the dataset.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited
Projects
None yet
Development

No branches or pull requests

2 participants