get_details
to retrieve subscription details:
How many API Query Units consume a Search?
search.run()
accepts a parameter to specify the number of
documents or chunks to retrieve. Every ten retrieved chunks count as one
API Query Unit.How many API Query Units consume a Search?
ChunkLimit
:search.run(ChunkLimit(100))
will retrieve a maximum of 100 chunks
and therefore will consume a maximum of 10 API Query Units. The
response might contain a smaller number of chunks due to discarding
duplicates, so the usage could be lower.How can I see the API Query Unit usage per Search?
search
tracks the amount of retrieved data, and you can consult it at any time with the method get_usage()
Initially, the usage of a new search is 0
run()
, the method get_usage()
returns the used Query Units.
The response might contain a smaller number of chunks due to discarding duplicates, so the usage could be lower. Check the how-to guide Retrieve limited chunks for more details.