Skip to content

Commit

Permalink
docs(magic_pdf): update llm_aided.py prompt for title list optimization
Browse files Browse the repository at this point in the history
- Clarify the expected format for the optimized title list JSON output- Emphasize the need to return only the title levels in the specified format
  • Loading branch information
myhloli committed Jan 15, 2025
1 parent f37b14b commit 916ced9
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 916ced9

Please sign in to comment.