development
for the Environment parameter in your API or SDK extraction calls.?environment=development
in an API endpoint, Sensible falls back to the production version for each configuration if it can’t find a development version.
To understand fallback behavior, imagine the document type test_doc_type
has the following config versions, which fit a document_a
with varying degrees of accuracy:
Config | Version in prod | Version in dev |
---|---|---|
configA | best fit | bad fit |
configB | OK fit | no published version |
?environment=development
, Sensible searches for a best fit across both production and development by comparing:
configA
in development (bad fit)configB
in production (OK fit)configB
(OK fit) in production. Notice that even though the API call specifies the Development environment, the call returns output from a production config because of fallback behavior.
If you don’t specify an environment, Sensible ignores development versions and compares:
configA
in production (best fit)configB
in production (OK fit)configA
(best fit) in production.