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

add parse method #4

Merged
merged 3 commits into from
Apr 3, 2024
Merged

add parse method #4

merged 3 commits into from
Apr 3, 2024

Conversation

Sdddell
Copy link
Collaborator

@Sdddell Sdddell commented Apr 3, 2024

  • Add parse method for information extraction
  • Rename the extract_pdf_content to extract


def _request_and_upload_by_apiKey(self, file_path):
params = {"fileName": file_path}
def _request_and_upload_by_apiKey(self, file_path, prompt=""):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we should force people to pass in prompt or to fail people early. Otherwise, user might force to put prompt and cause the backend to function improperly.

@CambioML CambioML merged commit 84d4c52 into CambioML:main Apr 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants