Replies: 1 comment
-
|
Manual changes to internal files like For retrieval errors like "Not found in documents" after an upgrade, this is often due to vector index incompatibility. Major Dify or Weaviate updates can change the expected schema (for example, requiring a Dify provides CLI tools for this: use Migration hang-ups are very often caused by code discrepancies—if your codebase doesn't match the expected schema or logic (for example, due to manual edits), migrations can hang or fail. To avoid data loss and maintain retrieval functionality: avoid manual edits to core files, always test upgrades in a staging environment, back up your data and indexes, and re-index after major version changes (source). If you still see issues after following these steps, sharing the specific error logs and details of any manual code changes will help pinpoint the problem. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
hello Dify Team,
I am managing multiple Dify projects via Docker Compose and I've encountered persistent issues after updating to the latest version. I need your technical insight on the following:
Code Modification vs. Migration: In one project, I manually modified api/core/llm_generator/prompts.py. After a git pull, the worker container began crashing with an ImportError: cannot import name 'LLM_MODIFY_CODE_SYSTEM'. Does manual tampering with internal prompt files directly break the flask db upgrade process?
Dataset Retrieval Errors (The "Text" Project Issue): In another project where I didn't modify the code as much, the containers are running, but the Dataset Test (Retrieval) fails completely. The chatbot responds with "Not found in documents" even though the files are visible in the Knowledge base.
Inconsistent Indexing: It seems that after an update, the existing indexes in Weaviate/PostgreSQL become incompatible with the new API logic. Is it mandatory to re-index (re-upload) all documents after a major version update, or is there a way to repair the existing index via CLI?
Root Cause: Is the "Running migrations" hang-up a result of these code discrepancies? We want to ensure that updating Dify doesn't lead to "data loss" in terms of retrieval functionality.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions