소스 검색

refactor: improve dictionary formatting in output structure

myhloli 5 달 전
부모
커밋
c18934a339
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      mineru/utils/llm_aided.py

+ 6 - 1
mineru/utils/llm_aided.py

@@ -60,7 +60,12 @@ def llm_aided_title(page_info_list, title_aided_config):
 
 IMPORTANT: 
 请直接返回优化过的由标题层级组成的字典,格式为{{标题id:标题层级}},如下:
-{{0:1,1:2,2:2,3:3}}
+{{
+  0:1,
+  1:2,
+  2:2,
+  3:3
+}}
 不需要对字典格式化,不需要返回任何其他信息。
 
 Input title list: