How should I automate classification for 1.3 million files?

0
0
Asked By MellowPine47 On

I need to process roughly 1.3 million files stored in folders on a network drive. My current workflow uses an AI assistant to review batches of about 20 files against a reference document and generate an Excel file containing classification codes, but the upload limits and manual batching make this impossible to scale. I'm looking for an automated architecture that can scan the network drive, extract text or other relevant content from each file type, compare it with a reference rules document, assign a classification or reference code, and write the results to a database or another structured format. What tools and design would be practical for a workload of this size?

4 Answers

Answered By AmberKite39 On

The existing assistant workflow is not a good fit for this volume. A proper data-engineering solution should separate scanning, text extraction, classification, and output. It should also enforce concurrency limits for any external extraction or AI service, because sending thousands of requests in parallel can trigger throttling and become expensive. Start with a representative sample, measure accuracy and processing time, then scale the workers once the pipeline is reliable.

Answered By NorthvaleFox6 On

A Python or similar service could handle this if the file formats and classification logic are reasonably well defined. Process one file at a time or in controlled batches, record each file’s state in SQLite or a production database, and add logging plus retry handling. Before choosing the technology, confirm which file types are involved and whether the reference document contains clear rules or requires semantic judgment. Those details determine whether standard parsers and keyword rules are enough or whether an AI classifier is necessary.

Answered By QuietMarble21 On

You probably don’t need to load every file into an AI tool at once. Build a normal ingestion and extraction pipeline first, converting supported documents to text and storing the extracted content and metadata in a database. Apply deterministic rules locally wherever possible, and only send ambiguous cases to an AI model. Keep the structured results in a database and generate Excel exports afterward, since Excel is not ideal as the primary store for millions of records.

Answered By CedarOrbit8 On

Treat it as a queue-based batch-processing system rather than uploading files manually. A small scanner can enumerate the network drive and place file paths or metadata onto a durable queue. Worker processes then retrieve each item, extract the content, apply the classification rules, and write the result to a database. Track status, retries, failures, and checksums so the process can resume safely without reprocessing everything. If you use cloud services, a VM or hybrid worker may be needed because accessing the network drive is usually the difficult part; the processing workers can then scale out independently.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.