You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Knowledge created in versions prior to 1.9.1 is not usable after upgrading to 1.9.2 #27291
I confirm that I am using English to submit this report, otherwise it will be closed.
【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
Please do not modify this template :) and fill in all the required fields.
Dify version
1.9.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Deploy fresh 1.9.1 (or older) of Dify with default VDB (Weaviate 1.19.0)
Create Knowledge and upload document
Ensure Retreival Testing works
Upgrade Dify to 1.9.2
Try Retreival Testing in the existing Knowledge
✔️ Expected Behavior
Retreival Testing works.
❌ Actual Behavior
Query call with protocol GRPC search failed with message extract target vectors: class Vector_index_b7ff402a_fea1_44f5_bed3_c26f5e25a369_Node does not have named vector default configured. Available named vectors map[].
Reacted by dosubot, Wind, tianshu, k-imura-crh, vinland100, Tuoyuan, Nguyễn Hoàng Duy, hiiamboris, pp, shimosaka and 5 more
This is a known issue when upgrading from Dify 1.9.1 (or earlier) to 1.9.2 with Weaviate as the vector database. The error occurs because older knowledge base collections lack the required named vector configuration (default) that Dify 1.9.2 expects for retrieval operations. The upgrade process does not automatically migrate or patch existing Weaviate collections to add this configuration, so retrieval fails for knowledge created before the upgrade [source].
To restore retrieval functionality, you need to re-index or re-upload the affected knowledge/documents so that the collections are recreated with the correct named vector configuration. There is currently no automated migration script in the codebase to patch legacy collections; manual re-indexing is required [source].
If you have a large amount of legacy knowledge, consider scripting the re-upload process or, if possible, exporting and re-importing the data to trigger re-indexing with the new schema.
@DhruvGorasiya@crazywoola
Since upgrading Weaviate has been a long-standing issue, this enhancement was highly anticipated, and I’m really grateful for all your hard work.
On the other hand, I’m concerned that this might cause significant confusion.
I assume you tested whether “newly created knowledge” works, but did you also test in advance whether “existing knowledge” continues to work?
I’ve already reviewed the documentation about migrating Weaviate. While there are appealing descriptions such as the following, unfortunately, in practice the Automatic Migration didn’t allow us to use knowledge created before the upgrade.
Path A: Docker Compose Users (Recommended)
If you’re using Dify’s standard Docker Compose setup, the Weaviate version is automatically updated when you upgrade Dify. No manual configuration is required.
Data Migration for Legacy Versions
Automatic Migration
In most cases, Weaviate 1.27.0 will automatically migrate data from 1.19.0:
Therefore, users need to follow the Manual Migration steps, but even then there are issues:
The backup-filesystem module isn’t loaded in Weaviate by default, so we can’t create a backup in the first place
By default, localhost:8080 isn’t exposed, so the suggested commands in docs don’t work as written. Also, curl is not available in Weaviate container.
There’s no mention of the required Authorization header either
Here’s what I think should be done—what are your thoughts?
Implement some automatic migration feature to migrate existing knowledges
Or,
Clearly state that manual data migration for Weaviate is required when upgrading Dify
The procedure should be: (EDIT: This might not be entirely accurate. See my follow-up comments.)
Add ENABLE_MODULES and BACKUP_FILESYSTEM_PATH configurations to the old version of Weaviate (so that backups are saved to a directory mounted via volumes)
Trigger the backup from the worker container (this is straightforward since WEAVIATE_ENDPOINT and WEAVIATE_API_KEY environment variables are available)
Upgrade Dify to 1.9.2
Add ENABLE_MODULES and BACKUP_FILESYSTEM_PATH configurations to the new version of Weaviate (so you can restore from the mounted backup directory)
Trigger the restore from the worker container
Reacted by Crazywoola, k-imura-crh, vinland100, Nguyễn Hoàng Duy, Miyar and Modas Li
Add ENABLE_MODULES and BACKUP_FILESYSTEM_PATH configurations to the old version of Weaviate (so that backups are saved to a directory mounted via volumes)
Trigger the backup from the worker container (this is straightforward since WEAVIATE_ENDPOINT and WEAVIATE_API_KEY environment variables are available)
Upgrade Dify to 1.9.2
Add ENABLE_MODULES and BACKUP_FILESYSTEM_PATH configurations to the new version of Weaviate (so you can restore from the mounted backup directory)
Trigger the restore from the worker container
Since this was just an idea I wrote before thoroughly testing it to follow Manual Migration, I actually tried it out, but the error wasn't resolved after all 🤔
I think this is a very serious issue. It has caused the already created knowledge base to not function properly, and the documentation doesn't mention how to solve it.
Reacted by vinland100, ChiuHsin, HZJprince, lema-founders, Yasuhiro Ohno, Vindia, daitianjun, Davide Delbianco, grassfish1122, Clair Relacion and 7 more
We've identified the root cause and developed a migration solution.
The Issue
Weaviate 1.27.0+ requires a new schema format with named vectors (vectorConfig). Existing data from Weaviate 1.19.0 uses the old format, causing the error when querying with weaviate-client v4.
The Solution
We're preparing:
Migration script that preserves all embeddings and data
Step-by-step guide for Docker and Cloud users
Automated detection for multiple knowledge bases
Timeline
Migration guide and scripts will be published by the end of the day today to by tomorrow morning latest.
Temporary Fix
Downgrade to Dify 1.9.1 if you need immediate access to your knowledge bases:
git checkout v1.9.1
cd docker
docker compose --profile weaviate up -d
Updates coming soon.
Reacted by Jim, k-imura-crh, vinland100, Nguyễn Hoàng Duy, Crazywoola, Cuman and hiiamboris
My upgrade from 1.9.1 to 1.9.2 also had this issue. In order to rebuild the index, I changed the Embedding 模型 of the knowledge base. At this time, the knowledge base will automatically rebuild the index, and the problem has been solved. Now the functions can be used normally
Reacted by vinland100, tianshu, nadazero, tedawan, souljoy, xiaolvtongxue-zt and kyleli666
Reacted by kyleli666
Reacted by tianshu, nadazero, souljoy and kyleli666
Sorry for the late follow-up! Our documentation has recently gone through some updates, which unfortunately delayed our ability to update the migration guide in time.
If you’re open to it, I’d really appreciate any suggestions you might have for improving the content in this PR. Your feedback has been incredibly helpful so far, and it would be great to incorporate your perspective as we refine the guide.
It would be helpful for us if a reindexing button could be provided on the knowledge base page. Alternatively, a script for full-volume reindexing would also be a good option for users with non-time-sensitive needs. Of course, the best approach would still be to support smooth migration.
My comments are as stated in this Issue comment. I was considering leaving another comment on the PR, but since it has already been merged, I'll refrain from adding anything further. In the first place, since the PR was created a few days after my comment, I assume it was intentionally made with a different approach, taking my comment into consideration.
There’s just one point I’d like to mention.
I think it would be helpful to clearly explain how to obtain migrate_weaviate_collections.py in the guide, since that information doesn't seem to be mentioned anywhere.
Also, if the latest migrate_weaviate_collections.py is the one shared in this Issue comment by @crazywoola, there are a few bugs that have become apparent—for example, the issue where objects exceeding 10,000 per collection are truncated (please refer to my comment on the Gist). If migrate_weaviate_collections.py is managed in some repository, I can submit a PR to fix these issues.
It seems that simple schema changes aren't sufficient to resolve this issue, and there are significant discrepancies in how UUIDs are handled between REST APIs and gRPC.
I was personally curious about this and did some trial-and-error testing, but ultimately found that it would require deep-level modifications to properly reconcile the specification differences between REST APIs and gRPC within the Dify program - clearly beyond what could be fixed in an interim patch.
I've resigned myself to having to rebuild the index and will proceed in that direction. However, I think it's important to note that this breaking change will likely cause significant difficulties for many people.
However, the guide doesn’t mention how to obtain the migration script, so no one can actually follow these steps. UPDATE: The official migrate script has been released.
There might be a bug in the official script where some data gets dropped when there are too many chunks. See my comment above. UPDATE: The all fixes made in my Gist had been backported to the official migrate script.
I’ve published an unofficial migration guide and the migration script (based on the official draft version) in my Gist.
I've simplified and streamlined the steps to minimize environmental dependencies as much as possible. Also, I've fixed any bugs I found in the scripts. UPDATE: The all fixes made in my Gist had been backported to the official migrate script.
Using these steps and this script, I successfully upgraded my Dify environment—which manages about 200 of knowledge—from version 1.7.1 to 1.10.1-fix.1.
However, the guide doesn’t mention how to obtain the migration script, so no one can actually follow these steps.然而,指南并未提及如何获取迁移脚本,因此实际上没有人能按照这些步骤操作。
Also, there might be a bug in the official script where some data gets dropped when there are too many chunks. See my comment above.此外,官方脚本中可能存在一个 bug,当数据块过多时,某些数据可能会丢失。参见我上面的评论。
I’ve published an unofficial migration guide and the migration script (based on the official draft version) in my Gist.
I've simplified and streamlined the steps to minimize environmental dependencies as much as possible. Also, I've fixed any bugs I found in the scripts.我已经简化并优化了步骤,以最大程度地减少环境依赖。此外,我还修复了脚本中发现的任何错误。
Using these steps and this script, I successfully upgraded my Dify environment—which manages about 200 of knowledge—from version 1.7.1 to 1.10.1-fix.1.使用这些步骤和这个脚本,我成功将我的 Dify 环境——管理大约 200 份知识——从版本 1.7.1 升级到 1.10.1-fix.1。
We have updated the migration guidelines and tools needed in the latest document. Thank you all for your attention to this issue. If you have any questions, please feel free to contact us.
Activity
dosubot commentedon Oct 22, 2025
This is a known issue when upgrading from Dify 1.9.1 (or earlier) to 1.9.2 with Weaviate as the vector database. The error occurs because older knowledge base collections lack the required named vector configuration (
default) that Dify 1.9.2 expects for retrieval operations. The upgrade process does not automatically migrate or patch existing Weaviate collections to add this configuration, so retrieval fails for knowledge created before the upgrade [source].To restore retrieval functionality, you need to re-index or re-upload the affected knowledge/documents so that the collections are recreated with the correct named vector configuration. There is currently no automated migration script in the codebase to patch legacy collections; manual re-indexing is required [source].
If you have a large amount of legacy knowledge, consider scripting the re-upload process or, if possible, exporting and re-importing the data to trigger re-indexing with the new schema.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

kurokobo commentedon Oct 22, 2025
@DhruvGorasiya @crazywoola
Since upgrading Weaviate has been a long-standing issue, this enhancement was highly anticipated, and I’m really grateful for all your hard work.
On the other hand, I’m concerned that this might cause significant confusion.
I assume you tested whether “newly created knowledge” works, but did you also test in advance whether “existing knowledge” continues to work?
I’ve already reviewed the documentation about migrating Weaviate. While there are appealing descriptions such as the following, unfortunately, in practice the Automatic Migration didn’t allow us to use knowledge created before the upgrade.
Therefore, users need to follow the Manual Migration steps, but even then there are issues:
backup-filesystemmodule isn’t loaded in Weaviate by default, so we can’t create a backup in the first placelocalhost:8080isn’t exposed, so the suggested commands in docs don’t work as written. Also,curlis not available in Weaviate container.Authorizationheader eitherHere’s what I think should be done—what are your thoughts?
Or,
ENABLE_MODULESandBACKUP_FILESYSTEM_PATHconfigurations to the old version of Weaviate (so that backups are saved to a directory mounted viavolumes)workercontainer (this is straightforward sinceWEAVIATE_ENDPOINTandWEAVIATE_API_KEYenvironment variables are available)ENABLE_MODULESandBACKUP_FILESYSTEM_PATHconfigurations to the new version of Weaviate (so you can restore from the mounted backup directory)workercontainerkurokobo commentedon Oct 22, 2025
Since this was just an idea I wrote before thoroughly testing it to follow Manual Migration, I actually tried it out, but the error wasn't resolved after all 🤔
I'm not a Weaviate expert, so I'm not sure about the details, but it might be related to changes in
api/core/rag/datasource/vdb/weaviate/weaviate_vector.py?jtfeng commentedon Oct 23, 2025
need help,same problem!
Tabll commentedon Oct 23, 2025
it feels like every upgrade has some issues. last time it was v2.0.0-beta.2 -> v1.9.1 #26091
fortunately, I checked this issues before upgrading. 😒😒
a397038588-jpg commentedon Oct 23, 2025
I think this is a very serious issue. It has caused the already created knowledge base to not function properly, and the documentation doesn't mention how to solve it.
ChiuHsin commentedon Oct 23, 2025
same problem
HZJprince commentedon Oct 23, 2025
Gum97 commentedon Oct 23, 2025
same problem, How to fix ???????
lema-founders commentedon Oct 23, 2025
@crazywoola any updates on this?
DhruvGorasiya commentedon Oct 23, 2025
Update: Migration Solution Available
We've identified the root cause and developed a migration solution.
The Issue
Weaviate 1.27.0+ requires a new schema format with named vectors (
vectorConfig). Existing data from Weaviate 1.19.0 uses the old format, causing the error when querying with weaviate-client v4.The Solution
We're preparing:
Timeline
Migration guide and scripts will be published by the end of the day today to by tomorrow morning latest.
Temporary Fix
Downgrade to Dify 1.9.1 if you need immediate access to your knowledge bases:
git checkout v1.9.1 cd docker docker compose --profile weaviate up -dUpdates coming soon.
aijuntao commentedon Oct 23, 2025
My upgrade from 1.9.1 to 1.9.2 also had this issue. In order to rebuild the index, I changed the Embedding 模型 of the knowledge base. At this time, the knowledge base will automatically rebuild the index, and the problem has been solved. Now the functions can be used normally
98 remaining items
dc-vin commentedon Dec 4, 2025
It would be helpful for us if a reindexing button could be provided on the knowledge base page. Alternatively, a script for full-volume reindexing would also be a good option for users with non-time-sensitive needs. Of course, the best approach would still be to support smooth migration.
kurokobo commentedon Dec 4, 2025
@laipz8200 @RiskeyL
Thanks for reaching out to me.
My comments are as stated in this Issue comment. I was considering leaving another comment on the PR, but since it has already been merged, I'll refrain from adding anything further. In the first place, since the PR was created a few days after my comment, I assume it was intentionally made with a different approach, taking my comment into consideration.
There’s just one point I’d like to mention.
I think it would be helpful to clearly explain how to obtain
migrate_weaviate_collections.pyin the guide, since that information doesn't seem to be mentioned anywhere.Also, if the latest
migrate_weaviate_collections.pyis the one shared in this Issue comment by @crazywoola, there are a few bugs that have become apparent—for example, the issue where objects exceeding 10,000 per collection are truncated (please refer to my comment on the Gist). Ifmigrate_weaviate_collections.pyis managed in some repository, I can submit a PR to fix these issues.tomy-kyu commentedon Dec 7, 2025
It seems that simple schema changes aren't sufficient to resolve this issue, and there are significant discrepancies in how UUIDs are handled between REST APIs and gRPC.
I was personally curious about this and did some trial-and-error testing, but ultimately found that it would require deep-level modifications to properly reconcile the specification differences between REST APIs and gRPC within the Dify program - clearly beyond what could be fixed in an interim patch.
I've resigned myself to having to rebuild the index and will proceed in that direction. However, I think it's important to note that this breaking change will likely cause significant difficulties for many people.
I'll document my trial-and-error process in the following Gist, but please be advised that I won't respond to any questions about it here.
https://gist.github.com/tomy-kyu/ba9331ee193ea5cb05d2dda1d9bb77c8
Gum97 commentedon Dec 9, 2025
Any update ?
domonless commentedon Dec 9, 2025
Any update ?
kiedeng commentedon Dec 9, 2025
@DhruvGorasiya bro,When will the official migration script be released? This is so frustrating...
kurokobo commentedon Dec 9, 2025
Here’s the current situation:
However, the guide doesn’t mention how to obtain the migration script, so no one can actually follow these steps.UPDATE: The official migrate script has been released.
There might be a bug in the official script where some data gets dropped when there are too many chunks. See my comment above.UPDATE: The all fixes made in my Gist had been backported to the official migrate script.
UPDATE: The all fixes made in my Gist had been backported to the official migrate script.
kiedeng commentedon Dec 10, 2025
@kurokobo Thanks bro, I will follow your solution to perform the migration test
Modas-Li commentedon Dec 10, 2025
same issue
Raven-Crow-0117 commentedon Dec 12, 2025
I'd like to work on this issue.
I've investigated the root cause and have a fix ready.
Could I be assigned to this?
Modas-Li commentedon Dec 12, 2025
laipz8200 commentedon Dec 16, 2025
We have updated the migration guidelines and tools needed in the latest document. Thank you all for your attention to this issue. If you have any questions, please feel free to contact us.
Thanks again to everyone who offered suggestions.
langgenius/dify-docs#616