This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Xpost from r/chatgpt
I am a GPT4 user and I am trying to build out a GPT that will extract specific information from a large PDF file (25 pages) and then use that information to calculate a score.
For example, I want GPT4 to search for total hours worked, which is a clearly designated field, and assign 0 points for no hours worked and up to 10 points for 2,000 hours worked at any job.
There are multiple fields I want to score like this, and they are almost all uniquely and discretely defined units. The problem is after providing a very specific rubric to use, half the time the GPT model doesn’t even access it for use, and the other half of the time it just totally misses items. It is also terrible about assigning points when there is a range of values (e.g., it gave 4 points for 495 hours worked when the rubric clearly says give 3 points for hours worked between 250 and 500 hours).
Any thoughts on how to make this better? I’ve tried messing with Python code, but it doesn’t seem to use it when placed in the “knowledge” of the GPT model.
Thanks!
Why not use Python to do this step by step with the GPT4 API?
Subreddit
Post Details
- Posted
- 6 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ChatGPTPro/...
Good to hear you are open to trying Python for this! Sometimes you need the right tool for the job. ChatGPT is very capable, but it is just not robust enough for more complex tasks like this.
While you can technically run a restricted version of Python from within ChatGPT, it cannot make API requests, install new packages, etc. For this reason I would highly recommend installing Python on your computer and running it yourself.
I made an example PDF that looks like this one, here is the Python script you can use:
For that PDF, the code outputs
Total score: 7.0
To get it working, you'll need the OpenAI API for GPT4 and The Pipe API for PDF extraction. I should mention that both APIs, like ChatGPT Pro, are paid.
Good luck!