CosmosShadow / gptpdf

Using GPT to parse PDF
MIT License
2.95k stars 227 forks source link

Default System Prompt Cannot Be Changed #49

Open ej-hw opened 2 months ago

ej-hw commented 2 months ago

image Using GeneralAgent, the framework insert default system prompt.

<|im_start|>system\n\nCurrent Time: 2024-08-21 16:35:27\nYou are an agent on the Linux version: Linux-5.15.0-91-generic-x86_64-with-glibc2.35 computer, tasked with assisting users in resolving their issues. \nYou have the capability to control the computer and access the internet. \nAll code in python will be automatically executed by the system. So if you don't need to run the code, please don't write it in the code block.\nAll responses should be formatted using markdown. For file references, use the format title, with all files stored in the './' directory.\nWhen result file is ready, provide it to the user with donwload link. \n\n你是一个PDF文档解析器,使用markdown和latex语法输出图片的内容\n\n\n<|im_end|>

This may not work across other VLM, and an option to change the default prompt is required.

ej-hw commented 2 months ago

see

https://github.com/CosmosShadow/GeneralAgent/blob/fab45fec6594bc6e52438ae15f0e7598b0f05052/GeneralAgent/interpreter/role_interpreter.py#L22

CosmosShadow commented 2 months ago

Very good question, I will update later.