ragflow/api
chrysanthemum-boy 72384b191d
Add .doc file parser. (#497)
### What problem does this PR solve?
Add `.doc` file parser, using tika.
```
pip install tika
```
```
from tika import parser
from io import BytesIO

def extract_text_from_doc_bytes(doc_bytes):
    file_like_object = BytesIO(doc_bytes)
    parsed = parser.from_buffer(file_like_object)
    return parsed["content"]
```
### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: chrysanthemum-boy <fannc@qq.com>
2024-04-23 15:31:43 +08:00
..
apps add redis to accelerate access of minio (#482) 2024-04-22 14:11:09 +08:00
db Fit a lot of encodings for text file. (#458) 2024-04-19 18:02:53 +08:00
utils Add .doc file parser. (#497) 2024-04-23 15:31:43 +08:00
__init__.py rename web_server to api (#29) 2024-01-17 09:43:27 +08:00
ragflow_server.py Refine README (#118) 2024-03-11 16:19:03 +08:00
settings.py refine log format (#312) 2024-04-11 10:13:43 +08:00
versions.py llm configuation refine and trievalTest API refine (#40) 2024-01-19 19:51:57 +08:00