Extended GPT Scraper avatar

Extended GPT Scraper

Try for free

No credit card required

Go to Store
Extended GPT Scraper

Extended GPT Scraper

drobnikj/extended-gpt-scraper
Try for free

No credit card required

Extract data from any website and feed it into GPT via the OpenAI API. Use ChatGPT to proofread content, analyze sentiment, summarize reviews, extract contact details, and much more.

Do you want to learn more about this Actor?

Get a demo
TH

Instructions limit with JSON output

Closed

thegenie opened this issue
8 months ago

Hi,

Thanks for clarifying the limit 1280 in our other closed ticket. I can see the error now which is useful and through trial and error realised there must be a limit (perhaps add to the page info too)

However, I've only put text in the "instructions" and not the "schemaDescription" as advised, but I still get the error message relating to char limit? I have set the option "Use JSON schema to format answer" to confirm.

Does this perhaps force the instructions into the the description irrispective of using the instructions, as you mentioned it's copied over? Therefore, is there no way round this?

I was wanting a fixed JSON output but with long instructions to get chatGPT to do a complex scoring system for product analysis so the instructions need to be pretty long to get it to do all the scoring I need.

Thanks J

lukas.prusa avatar

Hi again,

thanks a lot for the suggestion! We will definitely add the tip to schema and improve it ;)

Yes, as mentioned the schemaDescription by default, takes the value of instructions unless it has a value already. Simply set schemaDescription to any value, e.g. " ". From the tooltip: “By default, the instructions field's value is used as the schema description, you can change it here.”

OpenAI's own documentation around the JSON functions does not contain much useful information. There is almost no info about the difference between the context (our instructions) and the functions descriptions (our schemaDescription). From my own experience, you can simply use instructions and enable the JSON schema, and it will give almost the same results ;)

I hope this helps, thanks!

Developer
Maintained by Apify

Actor Metrics

  • 60 monthly users

  • 55 stars

  • 99% runs succeeded

  • 7.6 days response time

  • Created in Jun 2023

  • Modified 21 days ago