
Start Your AI Journey Today
- Access 100+ AI APIs in a single platform.
- Compare and deploy AI models effortlessly.
- Pay-as-you-go with no upfront fees.
This guide shows how to implement document question answering in JavaScript using Eden AI’s asynchronous API. It explains the two-stage process launching a job and retrieving results using Axios for HTTP requests.
In this tutorial, you will learn how to use the Document Question Answering API in 5 minutes using JavaScript. Eden AI provides an easy and developer-friendly API that allows you to extract specific information from your documents.
Document Question Answering allows the extraction of specific information from text-based documents using a query.
Simply provide the text you want to search, and the system will use optical character recognition (OCR) technology to scan the document and extract the information you need by automatically finding the specific data within large amounts of text.
This makes it ideal for tasks such as data entry and document analysis.
1. Sign Up: If you don't have an Eden AI account, create a free here. Once you do that you can obtain your API key, which you can use to access Document Question Answering.
2. Access OCR Tools: Once logged in, go to the document parsing section of the platform.
3. Choose the Document Question Answering Feature: Select the Document Question Answering tool. You can also explore advanced parsing options based on your specific requirements.
If you haven’t already, install axios to handle HTTP requests in Node.js:
Eden AI uses an asynchronous job system:
Response: Returns a public_id used to track the job’s status.
Once the job is submitted, Eden AI processes it asynchronously. You use the public_id from the POST response to fetch results.
Using Document QA with Eden AI API is quick and easy.
We offer a unified API for all providers: simple and standard to use, with a quick switch between providers and an access to the specific features of each provider.
The JSON output format is the same for all suppliers thanks to Eden AI's standardisation work. The response elements are also standardised thanks to Eden AI's powerful matching algorithms.
With Eden AI you have the possibility to integrate a third party platform: we can quickly develop connectors. To go further and customize your Document QA request with specific parameters, check out our documentation.
If you're building applications that handle document understanding like invoice parsing, contract analysis, or form processing, Eden AI offers a powerful and developer-friendly solution with minimal code and maximum flexibility.
You can directly start building now. If you have any questions, feel free to chat with us!
Get startedContact sales