Closed PolarPeak closed 1 month ago
I found a similar issue that might be relevant to your problem. In Dify version 0.7.2, newly added knowledge base paragraphs not being recalled while historical entries can be recalled is likely due to the indexing and retrieval settings.
When you upload new documents, they need to undergo chunking, cleaning, and embedding before they can be effectively recalled. If these steps are not properly configured or completed, the new entries may not be indexed correctly, leading to recall issues.
Ensure that the following steps are correctly followed for new documents:
Additionally, it is essential to configure the retrieval mode to enhance the precision of retrieved content. Navigate to Context -- Retrieval Settings -- Rerank Setting to set the retrieval mode for the knowledge bases. This ensures that the retriever scans all linked knowledge bases for relevant text content and consolidates the results effectively [1][2].
If these steps are not properly executed, the new entries may not be indexed correctly, leading to recall issues.
To continue talking to Dosu, mention @dosu.
@dosu How do I do that specifically?
To ensure newly added knowledge base paragraphs can be recalled in Dify version 0.7.2, follow these steps:
Upload Documents:
Segment and Clean the Document:
Custom Mode: Manually configure chunking and cleaning rules if needed:
chunking_rules = {
"delimiter": "\n",
"max_chunk_length": 4000,
"chunk_overlap": 0.1
}
preprocessing_rules = {
"replace_consecutive_spaces": True,
"delete_urls_emails": True
}
Indexing Mode:
Embedding:
Retrieval Settings:
ETL Configuration (Optional):
By following these steps, you ensure that new documents are properly processed and can be recalled effectively [1][2][3].
To continue talking to Dosu, mention @dosu.
Creating a new knowledge base also fails to recall entries.
Self Checks
Dify version
0.7.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
After the upgrade, historical knowledge base entries can be recalled, but newly added knowledge base paragraphs cannot be recalled, although annotated data can be retrieved.
Historical knowledge base entries can be recalled normally.
Newly added paragraphs cannot be recalled properly.
✔️ Expected Behavior
I hope that both newly added and historical paragraphs can be recalled properly, as they were before.
❌ Actual Behavior
After the upgrade, historical knowledge base entries can be recalled, but newly added knowledge base paragraphs cannot be recalled, although annotated data can be retrieved.