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

docs(magic_pdf): update llm_aided.py prompt for title list optimization #1543

Merged
merged 1 commit into from
Jan 15, 2025
Merged
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
4 changes: 3 additions & 1 deletion magic_pdf/post_proc/llm_aided.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def llm_aided_title(pdf_info_dict, title_aided_config):
- 优化后的标题只保留代表该标题的层级的整数,不要保留其他信息

IMPORTANT:
请直接返回优化过的由标题层级组成的json,返回的json不需要格式化。
请直接返回优化过的由标题层级组成的json,格式如下:
{{"0":1,"1":2,"2":2,"3":3}}
返回的json不需要格式化。

Input title list:
{title_dict}
Expand Down
Loading