Sensible’s new classification API automates document identification, labeling, and routing without needing any additional configuration.
Previously, you had to specify a document type in order to send an extraction API call, which could cause bottlenecks in the extraction workflow. The classification API intelligently matches your uploaded document to the document types and reference documents already stored in your Sensible account, removing the need to determine the document type ahead of time.
Using the classification API
Sensible classifies the document as a corresponding document type you’ve already defined in your Sensible account and matches it to the reference documents for that document type.
Then, Sensible returns the classification results, including similarity scores for each document type in your account, and for each reference document within the highest-scoring document type.
With the document type now identified, you can use this information in several different ways, including:
How it works
Similar to our question and list extraction methods, the classification API calculates OpenAI embeddings over your query document and compares them against the document types in your Sensible account. We average the similarity scores across all reference documents in each document type, and return the document type with the highest similarity score. We also return the individual similarity scores for all reference documents in the selected document type.
The classification API simplifies document preprocessing by removing the guesswork and manual selection from the extraction process. Simply upload your document and start extracting sooner.