Cool Tips for Working with Word docx Files in Codex

Original Post:

Codex tries to write python code and stuff. It works some of the times. Most of times it produces invalid docx, takes a really long time, show tons of random python errors.

Is there a better alternative?

Welcome to the community…

What kind of prompt are you using? Are you giving explicit instructions?

Any clues in the thinking process?

NOTE: I moved these to a new topic from one flagged as spam as there’s some decent links and info for people wanting to use Word files…

You might try giving it more explicit instructions - ie call the docx tool etc.

I’m not sure if there’s a Codex docx skill or not. Hrm.

I’ve seen the thinking get confused for images and searching files then go into circles for a bit. That’s why I asked if there were any clues in the reasoning/thinking around where it fails.

Found this.

image


$documents is available from Codex.
Just start a new prompt with only $ to see the displayed list.

Thanks, Eric. Very useful.

I’ve gotten good docs from ChatGPT, so it was surprising Codex had problems.

Comments and redlining work occasionally? Any similarities in the ones that do work or those that don’t?

Maybe try inline comments [COMMENT: blah blah] which you could easily strip out later?

I wonder if it’s using or has trouble with Track Changes in Word?

Let us know if you manage to get it working better. Without specifics, it’s hard to replicate and test.

No worries! Not a requirement.

Sounds like you might have better luck rolling your own solution rather than using Codex as the wrapper? While Codex is easier to set-up and run, creating your own custom solution might be worth it in this case if it’s a lot of documents and you need more control over the process.

But yeah, let us know if you try some of Eric’s suggestions and get it working better, but personally I’d try to develop my own solution for this if you need emphasis on docx files.

Good luck and happy coding!