Extract playground returns expected results on web. API extract returns empty.
I used the web-based extract playground to figure out prompt + URL and it is returning the expected results.
However, when I copy the generated code from the playground to a python file, each API call returns an empty set.
3 Replies
Hey! This probably isn't an API vs playground issue. After all, the playground uses the API under the hood.
The issue is likely that /extract is non-deterministic since it heavily relies on LLMs, which are inherently non-deterministic.
Regardless of the exact cause, I've switched to /scrape
Great choice!