mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-22 14:10:01 +08:00
Feat: support pic base bullet for PPT (#6406)
### What problem does this PR solve? support pic base bullet for PPT modify one mistake in document ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
efc4796f01
commit
d77380f024
@ -24,7 +24,7 @@ class RAGFlowPptParser:
|
||||
super().__init__()
|
||||
|
||||
def __get_bulleted_text(self, paragraph):
|
||||
is_bulleted = bool(paragraph._p.xpath("./a:pPr/a:buChar")) or bool(bool(paragraph._p.xpath("./a:pPr/a:buAutoNum")) )
|
||||
is_bulleted = bool(paragraph._p.xpath("./a:pPr/a:buChar")) or bool(paragraph._p.xpath("./a:pPr/a:buAutoNum")) or bool(paragraph._p.xpath("./a:pPr/a:buBlip"))
|
||||
if is_bulleted:
|
||||
return f"{' '* paragraph.level}.{paragraph.text}"
|
||||
else:
|
||||
|
@ -1149,7 +1149,7 @@ curl --request GET \
|
||||
|
||||
- `dataset_id`: (*Path parameter*)
|
||||
The associated dataset ID.
|
||||
- `document_ids`: (*Path parameter*)
|
||||
- `document_id`: (*Path parameter*)
|
||||
The associated document ID.
|
||||
- `keywords`(*Filter parameter*), `string`
|
||||
The keywords used to match chunk content.
|
||||
|
Loading…
x
Reference in New Issue
Block a user