Commit 6ba9228
authored
feat: Add DocX parsing strategy to enable configuring convert-to-PDF (#173)
Adds an optional (None-default) `docx_parsing_strategy` to the
ParserConfig to mirror `docx_parsing_strategy` in `ParserConfig` in
[compass-parser](https://github.com/cohere-ai/compass-parser/blob/e0ea790c040de8dc2246c96de63d2598264692dd/parser/compass_parser/parser_types.py#L410).
In conformance with the pattern established by
`presentation_parsing_strategy`, by default the SDK will not pass an
explicit value for `docx_parsing_strategy` and let the server decide.
**Related PRs**
- cohere-ai/compass-parser#247 - Corresponding
compass-parser PR
- #165 - Similar but
for adding convert-to-PDF presentation strategy
**Blocking**
- Once this PR is merged, version bumped & released, [this PR adding e2e
docx parsing eval can be
merged](cohere-ai/compass-eval#21).1 parent 768a1cb commit 6ba9228
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
116 | 129 | | |
117 | 130 | | |
118 | 131 | | |
| |||
193 | 206 | | |
194 | 207 | | |
195 | 208 | | |
| 209 | + | |
196 | 210 | | |
197 | 211 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 212 | | |
| 213 | + | |
| 214 | + | |
202 | 215 | | |
203 | 216 | | |
204 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
0 commit comments