First quotation mark in a phrase disappears on import into knowledge #7965

Closed
opened 2026-02-21 18:23:16 -05:00 by yindo · 2 comments
Owner

Originally created by @M4g3dd0 on GitHub (Feb 4, 2025).

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.15.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Click Create knowledge in Knowledge tab.
  2. Choose Import from file.
  3. Upload a text file with multiple lines with "Some text."="Some text." pattern.
  4. Click Next.
  5. Use general Chunk settings and '\n' as a delimeter
  6. Click Preview Chunk button

✔️ Expected Behavior

I expect to have chunks with a line in each chunk with the same "Some text."="Some text." pattern with all quotation marks.

Actual Behavior

I get a line in each chunk without first quotation mark Some text."="Some text."

Originally created by @M4g3dd0 on GitHub (Feb 4, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Click Create knowledge in Knowledge tab. 2. Choose Import from file. 3. Upload a text file with multiple lines with "Some text."="Some text." pattern. 4. Click Next. 5. Use general Chunk settings and '\n' as a delimeter 6. Click Preview Chunk button ### ✔️ Expected Behavior I expect to have chunks with a line in each chunk with the same "Some text."="Some text." pattern with all quotation marks. ### ❌ Actual Behavior I get a line in each chunk without first quotation mark Some text."="Some text."
yindo added the 🐞 bug label 2026-02-21 18:23:16 -05:00
yindo closed this issue 2026-02-21 18:23:16 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 4, 2025):

Hello @M4g3dd0! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's work together to solve this issue.

The issue you're experiencing with the first quotation mark disappearing during the import process in Dify version 0.15.2 might be related to how the platform handles special characters during text processing. Unfortunately, I couldn't find specific information on known issues with handling special characters like quotation marks in the Dify import process.

However, you might want to check the chunking settings and ensure that the delimiters or any preprocessing steps aren't inadvertently altering the text. If the problem persists, consider reviewing the code responsible for text extraction and processing, particularly in the DocumentExtractorNode class, as it handles the extraction process [1].

If this doesn't resolve the issue, it might be beneficial to look into any recent changes or updates in the codebase that could affect text import and chunking, although no specific version-related changes were found for version 0.15.2 [1].

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Feb 4, 2025): <!-- Greeting --> Hello @M4g3dd0! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's work together to solve this issue. <!-- Answer --> The issue you're experiencing with the first quotation mark disappearing during the import process in Dify version 0.15.2 might be related to how the platform handles special characters during text processing. Unfortunately, I couldn't find specific information on known issues with handling special characters like quotation marks in the Dify import process. However, you might want to check the chunking settings and ensure that the delimiters or any preprocessing steps aren't inadvertently altering the text. If the problem persists, consider reviewing the code responsible for text extraction and processing, particularly in the `DocumentExtractorNode` class, as it handles the extraction process <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/document_extractor/node.py)</sup>. If this doesn't resolve the issue, it might be beneficial to look into any recent changes or updates in the codebase that could affect text import and chunking, although no specific version-related changes were found for version 0.15.2 <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/document_extractor/node.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/fb15d766-be8a-4198-83c3-2751a0b6764c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/fb15d766-be8a-4198-83c3-2751a0b6764c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/fb15d766-be8a-4198-83c3-2751a0b6764c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/fb15d766-be8a-4198-83c3-2751a0b6764c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/fb15d766-be8a-4198-83c3-2751a0b6764c?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/fb15d766-be8a-4198-83c3-2751a0b6764c?feedback_type=other)</sup>
Author
Owner

@evitolo commented on GitHub (Mar 28, 2025):

Issue still exists in version 1.1.2.
The first quotation mark (" or ' or `) in each chunk is deleted when importing text into the knowledge base.

@evitolo commented on GitHub (Mar 28, 2025): Issue still exists in version 1.1.2. The first quotation mark (" or ' or `) in each chunk is deleted when importing text into the knowledge base.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7965