Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove param output_type #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions libs/upstage/langchain_upstage/document_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class UpstageDocumentParseLoader(BaseLoader):

file_path = "/PATH/TO/YOUR/FILE.pdf"
loader = UpstageDocumentParseLoader(
file_path, split="page", output_type="text"
file_path, split="page", output_format="text"
)
"""

Expand All @@ -95,9 +95,6 @@ def __init__(
Args:
file_path (Union[str, Path, List[str], List[Path]]): The path to the
document to be loaded.
output_type (Union[OutputType, dict], optional): The type of output to be
generated by the parser.
Defaults to "html".
split (SplitType, optional): The type of splitting to be applied.
Defaults to "none" (no splitting).
api_key (str, optional): The API key for accessing the Upstage API.
Expand Down