ragflow/rag
alkscr 9e7d052c8d
Fix: knowledge graph resolution with infinity raise error tokenizing in specific situations (#7048)
### What problem does this PR solve?

When running graph resolution with infinity, if single quotation marks
appeared in the entities name that to be delete, an error tokenizing of
sqlglot might occur after calling infinity.

For example:
```
INFINITY delete table ragflow_xxx, filter knowledge_graph_kwd IN ('entity') AND entity_kwd IN ('86 IMAGES FROM PREVIOUS CONTESTS', 'ADAM OPTIMIZATION', 'BACKGROUND'ESTIMATION')
```
may raise error
```
Error tokenizing 'TS', 'ADAM OPTIMIZATION', 'BACKGROUND'ESTIMATION''
```
and make the document parsing failed。

Replace one single quotation mark with double single quotation marks can
let sqlglot tokenize the entity name correctly.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-04-17 16:15:21 +08:00
..
app Fix: abnormal cell mergeing. (#6991) 2025-04-14 11:00:11 +08:00
llm Fix: local variable referenced before assignment (#6909) 2025-04-09 20:29:12 +08:00
nlp Fix: incorrect total chunks count in retrieval function after similarity filtering (#6741) (#6932) 2025-04-11 12:31:36 +08:00
res Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
svr Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
utils Fix: knowledge graph resolution with infinity raise error tokenizing in specific situations (#7048) 2025-04-17 16:15:21 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
prompts.py Refa. (#7022) 2025-04-15 10:20:33 +08:00
raptor.py fix bug [ERROR][Exception]: 8 vs. 9 (#6955) 2025-04-11 17:01:49 +08:00
settings.py Fix: optimize setting config initialization to resolve Minio initialization error (#6282) 2025-03-20 10:45:40 +08:00