Selaa lähdekoodia

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)
tags/v0.18.0
Stephen Hu 7 kuukautta sitten
vanhempi
commit
d77380f024
No account linked to committer's email address
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1
    1
      deepdoc/parser/ppt_parser.py
  2. 1
    1
      docs/references/http_api_reference.md

+ 1
- 1
deepdoc/parser/ppt_parser.py Näytä tiedosto

@@ -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:

+ 1
- 1
docs/references/http_api_reference.md Näytä tiedosto

@@ -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…
Peruuta
Tallenna