-
Notifications
You must be signed in to change notification settings - Fork 11k
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
"{" Character Removed When Adding Dataset via API #11868
Comments
@pickuse2013 Hello there! I'm here to help you with bugs, answer your questions, and even guide you on how to become a contributor. Let's figure out the issue you're facing together. The issue you're experiencing with the "{" character being removed when updating documents via the Knowledge API in version 0.14.1 might be related to changes in the text processing pipeline between versions v0.13.2 and v0.14.1. However, I couldn't find specific information about changes affecting character handling, particularly for curly braces To address this, you might want to check the If the issue persists, consider reviewing the text processing logic in the Dify codebase, particularly around the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@takatost or anyone, could you take a look at this issue? This is a critical problem—updating the document leads to a loss of content integrity. The issue occurs when upgrading from v0.13 to v0.14.1. Based on the latest release notes, it seems that it hasn't been fixed in v0.14.2 either. |
will take a look maybe today |
Signed-off-by: yihong0618 <[email protected]>
|
Signed-off-by: yihong0618 <[email protected]>
Self Checks
Dify version
0.14.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When attempting to update documents through the Knowledge API, the "{" character in the input text is incorrectly removed.
This issue occurred after updating from version
v0.13.2
tov0.14.1
.Affected API:
/datasets/{dataset_id}/documents/{document_id}/update-by-text
Steps to Reproduce:
✔️ Expected Behavior
The text in the document should remain as
{aaaa}
.❌ Actual Behavior
The stored text in the document becomes
aaaa}
.The text was updated successfully, but these errors were encountered: