Cloudflare Reduces Data Extraction Costs from Documents by 49% with Clairic

Cloudflare has introduced Clairic, an extraction model that extracts structured values from messy documents in a single operation, without generating tokens. In internal tests, Clairic processed a support request for damaged products in 19.3 seconds, compared to 61.7 seconds for an LLM-based system, saving 49% on costs.

The traditional system using LLM to extract data from documents like invoices or emails presents numerous problems. These models can generate invalid JSON, misread figures, or return extracts without source references. To mitigate these errors, companies must integrate additional parsers, schema checks, and repeated attempts, increasing operational costs.

Quick Answer

Clairic is a data extraction model developed by Cloudflare that reduces time and costs compared to LLM-based solutions. It runs on Workers AI and is provided as an endpoint @cf/cloudflare/clairic. The service is designed to extract structured values from messy documents, including text and images, returning results in a well-defined format.

How Clairic Works

Clairic operates on Workers AI and can process text, up to four images, and a list of named fields with their types (number, date, list, or estimate). Results are returned as values of the requested type or null. Scalar values include a confidence score and pnull, the probability that the value is missing from the input. Extracted text is accompanied by character offsets. Cloudflare charges only for the processed input.

In a test on a customer email, Clairic calculated a total of $701.10, summing a price of $649 and a tax of $52.10, even though the total was not explicitly stated in the email. It counted 11 days between delivery and the email date. For a tracking number not present in the email, it returned null, with a pnull value of 1.

Comparison with LLM-Based Solutions

In the refund request processing test, Clairic extracted facts in 0.46 seconds, while Clef, Cloudflare's model for option selection, chose between repair or refund in 0.22 seconds. GLM-5.3, the LLM used in the comparison, took 38 seconds for the same operations. Both solutions used GLM-5.3 to generate the response, which took 18.6 seconds of Clairic's total workflow processing time.

The Clairic-based workflow cost $6,032 per million requests, compared to $11,740 for the LLM-based system. Both systems provided correct results in every execution reported by Cloudflare. Clairic maintained a consistent repair estimate, while GLM-5.3 returned different values in repeated executions. Gemma 4 and Qwen, used as LLM-based pipelines, failed to determine the repair cost.

Expected Applications and Limitations

Cloudflare has also tested Clairic for predictions, such as counting TSA checkpoints in U.S. airports. Over 21 days of predictions, Clairic had an average error of 3.3%, with 17 of the 21 actual counts within the 80% confidence interval. Three of the four errors occurred during the Columbus Day weekend, an event the model could not predict based on data history.

Cloudflare emphasizes that Clairic is still in development and has some limitations. Complex mathematical operations or sums across multiple rows of tables may not be reliable, and the company advises using specific code for these operations. Additionally, prediction intervals may be narrow on unfamiliar data, and predictions cannot replace specific time series models for the data in question.

Implications for Security and Data Management

Clairic's ability to extract structured data from messy documents can have significant implications for security and data management. For example, integrating Clairic into a corporate DLP system could enhance the ability to detect and protect sensitive information within unstructured documents.

For companies managing large volumes of documents, adopting Clairic could significantly reduce operational costs related to data extraction and validation. This could be particularly useful for incident response teams, which often need to quickly analyze large amounts of information to effectively respond to security threats.

Furthermore, using Clairic could improve the efficiency of compliance processes, reducing the time and resources needed to extract and verify data required by regulations.

The Market for Data Extraction Solutions and Existing Alternatives

Clairic enters a already crowded market of tools for extracting data from unstructured documents. Competitors like Amazon Textract, Google Document AI, and Microsoft Azure Form Recognizer offer similar functionalities but with different approaches. These services often use traditional machine learning techniques or LLM, with higher operational costs than Clairic. For example, Amazon Textract charges $0.0015 per page processed, while Clairic operates with a payment model based on processed input, potentially more advantageous for high-volume applications.

Impact on the Cyber Insurance Ecosystem

The reduction in operational costs for data extraction could have significant repercussions on the market for cyber insurance. Insurance companies often need to analyze large amounts of documents to assess claims. The adoption of tools like Clairic could improve the efficiency of assessment processes, reducing processing times and associated costs. This could translate into more competitive insurance premiums for companies, as the operational costs of insurers decrease.

Considerations for Development and Integration Teams

For development teams, integrating Clairic into existing workflows requires a careful assessment of specific needs. Cloudflare recommends using specific code for complex mathematical operations or sums across multiple rows of tables, indicating that Clairic is not a universal solution. Developers must carefully consider use cases where Clairic offers significant advantages over alternative solutions. Additionally, integration with other data analysis tools and information management systems may require additional development efforts.

Future Prospects and Expected Developments

Cloudflare has indicated that Clairic is still in development, suggesting that further improvements and features may be introduced in the future. Users can expect enhancements in prediction capabilities and the reliability of complex mathematical operations. Additionally, the company may explore integrating Clairic with other Cloudflare services, expanding usage possibilities. The publication of the model weights could also stimulate the development of open-source communities around Clairic, contributing to further innovations and improvements.

Implications for Risk Management and Compliance

Adopting Clairic could have implications for risk management and compliance with regulations. For example, accurate data extraction could facilitate compliance with regulations such as the NIS2 Directive and the DORA Regulation, which require effective data management and digital operational resilience. Companies could use Clairic to improve data transparency and accuracy, reducing the risks of non-compliance and improving overall risk management.

Conclusion and Forecasts

Clairic represents a significant step in the evolution of data extraction solutions, offering an efficient and precise alternative to LLM-based systems. With a 49% reduction in operational costs and faster processing times, Clairic could become an essential tool for companies managing large volumes of unstructured documents. As the model continues to develop, we are likely to see further improvements and integrations that will expand its capabilities and applications. Companies that adopt Clairic today could benefit from a significant competitive advantage, improving operational efficiency and reducing costs associated with data management.

Frequently Asked Questions

What are the costs associated with using Clairic?

Cloudflare charges only for the input processed by Clairic, offering a payment model based on actual usage. This can be more advantageous compared to solutions that charge per page or generated token.

Is Clairic suitable for complex mathematical operations?

Currently, Clairic is not reliable for complex mathematical operations or sums across multiple rows of tables. Cloudflare recommends using specific code for these operations.

What are the main applications of Clairic?

Clairic is particularly useful for extracting data from unstructured documents such as invoices, emails, and support requests. It can also be used for predictions based on historical data.

Editorial Note and Disclaimer

The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.

GoYou does not constitute a journalistic publication or an editorial product pursuant to Law No. 62/2001 and does not provide real-time information.

The GoYou project does not provide professional, technical, legal, or financial advice and disclaims all liability for the misuse of the information published.

In the Crypto sector, every investment involves risks: readers are invited to always inform themselves independently before making any decision.