-
Notifications
You must be signed in to change notification settings - Fork 315
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 file inspect service function #359
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see inline comments.
".docx": inspect_docx_as_text, | ||
".xlsx": inspect_xlsx_as_text, | ||
".pdf": inspect_pdf_as_text, | ||
".html": inspect_html_as_text, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove the existing html parsing function? The two functions are duplicated in functionality.
) | ||
|
||
|
||
def parse_html_to_markdown(html_content: str) -> ServiceResponse: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZiTao-Li Please check this function
Description
Add service functions so that our LLM model can inspect local .pdf .docx .xlsx files. Also add a inspect_file_as_text service function that include all the file inspection function.
Checklist
Please check the following items before code is ready to be reviewed.