add method to return both content and metadata? #758
unsleepy22
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@adbar what do you think? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We now have two extraction methods in core:
bare_extraction
andextract
. The former returns internal structure while the latter returns only parsed content. In many cases we need to retrieve both web page metadata & content and store them separately. It does not feel elegant to parse metadata from content (when we set with_metadata=True), we wouldn't want to parse metadata in a separate call either. So is it possible that we add a method likeextract_with_metadata
, to returnUnion[Document, str]
?Beta Was this translation helpful? Give feedback.
All reactions