magic-pdf.template.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "bucket_info":{
  3. "bucket-name-1":["ak", "sk", "endpoint"],
  4. "bucket-name-2":["ak", "sk", "endpoint"]
  5. },
  6. "models-dir":"/tmp/models",
  7. "layoutreader-model-dir":"/tmp/layoutreader",
  8. "device-mode":"cpu",
  9. "layout-config": {
  10. "model": "doclayout_yolo"
  11. },
  12. "formula-config": {
  13. "mfd_model": "yolo_v8_mfd",
  14. "mfr_model": "unimernet_small",
  15. "enable": true
  16. },
  17. "table-config": {
  18. "model": "rapid_table",
  19. "sub_model": "slanet_plus",
  20. "enable": true,
  21. "max_time": 400
  22. },
  23. "llm-aided-config": {
  24. "formula_aided": {
  25. "api_key": "your_api_key",
  26. "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  27. "model": "qwen2.5-7b-instruct",
  28. "enable": false
  29. },
  30. "text_aided": {
  31. "api_key": "your_api_key",
  32. "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  33. "model": "qwen2.5-7b-instruct",
  34. "enable": false
  35. },
  36. "title_aided": {
  37. "api_key": "your_api_key",
  38. "base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  39. "model": "qwen2.5-32b-instruct",
  40. "enable": false
  41. }
  42. },
  43. "config_version": "1.2.0"
  44. }