Files
langchain-python/langchain/document_loaders
Matt Robinson 3943759a90 feat: add loader for rich text files (#3227)
### Summary

Adds a loader for rich text files. Requires `unstructured>=0.5.12`.

### Testing

The following test uses the example RTF file from the [`unstructured`
repo](https://github.com/Unstructured-IO/unstructured/tree/main/example-docs).

```python
from langchain.document_loaders import UnstructuredRTFLoader

loader = UnstructuredRTFLoader("fake-doc.rtf", mode="elements")
docs = loader.load()
docs[0].page_content
```
2023-04-20 15:51:49 -07:00
..
2023-02-10 18:08:00 -08:00
2023-03-30 20:58:14 -07:00
2023-02-20 08:20:48 -08:00
2023-02-05 23:02:07 -08:00
2023-03-28 08:17:22 -07:00
2023-03-17 09:05:08 -07:00
2023-02-26 17:27:00 -08:00
2023-03-28 08:38:19 -07:00
2023-04-19 21:04:12 -07:00
2023-02-24 07:22:48 -08:00
2023-03-22 19:57:46 -07:00
2023-04-06 22:55:07 -07:00
2023-04-17 21:02:35 -07:00
2023-02-08 12:00:47 -08:00
2023-03-14 21:17:50 -07:00
2023-02-20 08:20:48 -08:00
2023-02-25 08:48:02 -08:00
2023-02-05 23:02:07 -08:00
2023-04-17 21:57:32 -07:00
2023-02-08 00:35:33 -08:00
2023-03-30 20:46:36 -07:00
2023-02-18 10:58:39 -08:00
2023-02-17 00:53:01 -08:00
2023-04-17 21:44:54 -07:00
2023-04-19 20:48:47 -07:00