Automated Document Parser

API Reference

  • Feature Guide
    • Choose an entry point
    • Parsing and normalized document model
    • PDF backend selection
    • Document intelligence
    • Transformation and privacy
    • Ingestion, embeddings and retrieval
    • Evaluation and benchmarks
    • CLI, HTTP API and durable jobs
    • Operations: backups, logs, metrics and deployment
    • Security boundaries
    • Runnable examples
    • See also
  • API Reference
    • Python HTTP Client
      • ADPClient
        • ADPClient.__init__()
        • ADPClient.submit_job()
        • ADPClient.get_job()
        • ADPClient.list_jobs()
        • ADPClient.cancel_job()
        • ADPClient.retry_job()
        • ADPClient.search()
      • ADPClientError
        • ADPClientError.__init__()
    • Production Ingestion Pipeline
      • DocumentIngestionPipeline
        • DocumentIngestionPipeline.__init__()
        • DocumentIngestionPipeline.ingest()
        • DocumentIngestionPipeline.ingest_many()
        • DocumentIngestionPipeline.create_retriever()
        • DocumentIngestionPipeline.search()
      • IngestionConfig
        • IngestionConfig.pdf_loader_method
        • IngestionConfig.encoding
        • IngestionConfig.normalize
        • IngestionConfig.redact_pii
        • IngestionConfig.pii_categories
        • IngestionConfig.classify
        • IngestionConfig.extract_entities
        • IngestionConfig.max_chars
        • IngestionConfig.overlap
        • IngestionConfig.respect_element_boundaries
        • IngestionConfig.__init__()
      • IngestionResult
        • IngestionResult.ingestion_id
        • IngestionResult.source
        • IngestionResult.content_sha256
        • IngestionResult.document
        • IngestionResult.chunks
        • IngestionResult.classification
        • IngestionResult.entities
        • IngestionResult.extraction
        • IngestionResult.redaction
        • IngestionResult.embedded_chunks
        • IngestionResult.stored_chunks
        • IngestionResult.stage_durations_ms
        • IngestionResult.__init__()
      • BatchIngestionResult
        • BatchIngestionResult.results
        • BatchIngestionResult.failures
        • BatchIngestionResult.succeeded
        • BatchIngestionResult.failed
        • BatchIngestionResult.__init__()
      • IngestionFailure
        • IngestionFailure.source
        • IngestionFailure.error_type
        • IngestionFailure.message
        • IngestionFailure.__init__()
    • Command-Line Interface
      • build_parser()
      • main()
    • Backup and Restore
      • create_backup()
      • restore_backup()
    • Structured Logging
      • CorrelationIdFilter
        • CorrelationIdFilter.filter()
      • JsonLogFormatter
        • JsonLogFormatter.format()
      • HumanLogFormatter
        • HumanLogFormatter.format()
      • configure_logging()
      • correlation_context()
      • get_correlation_id()
    • HTTP API and Durable Jobs
      • ApiMetrics
        • ApiMetrics.__init__()
        • ApiMetrics.observe_request()
        • ApiMetrics.observe_job_enqueued()
        • ApiMetrics.update_runtime()
      • create_app()
      • IngestionJob
        • IngestionJob.id
        • IngestionJob.source
        • IngestionJob.status
        • IngestionJob.created_at
        • IngestionJob.updated_at
        • IngestionJob.attempts
        • IngestionJob.started_at
        • IngestionJob.completed_at
        • IngestionJob.available_at
        • IngestionJob.error_type
        • IngestionJob.error_message
        • IngestionJob.result
        • IngestionJob.idempotency_key
        • IngestionJob.to_dict()
        • IngestionJob.__init__()
      • SQLiteJobStore
        • SQLiteJobStore.__init__()
        • SQLiteJobStore.enqueue()
        • SQLiteJobStore.enqueue_with_status()
        • SQLiteJobStore.get_by_idempotency_key()
        • SQLiteJobStore.get()
        • SQLiteJobStore.list_jobs()
        • SQLiteJobStore.counts()
        • SQLiteJobStore.recover_interrupted()
        • SQLiteJobStore.claim_next()
        • SQLiteJobStore.complete()
        • SQLiteJobStore.fail()
        • SQLiteJobStore.cancel()
        • SQLiteJobStore.retry()
        • SQLiteJobStore.health_check()
        • SQLiteJobStore.close()
      • IngestionWorker
        • IngestionWorker.__init__()
        • IngestionWorker.is_running
        • IngestionWorker.health()
        • IngestionWorker.start()
        • IngestionWorker.stop()
        • IngestionWorker.pause()
        • IngestionWorker.resume()
    • Core Module
      • DocumentProcessor
        • DocumentProcessor.__init__()
        • DocumentProcessor.process()
        • DocumentProcessor.classify()
        • DocumentProcessor.extract_entities()
        • DocumentProcessor.extract()
        • DocumentProcessor.chunk()
        • DocumentProcessor.normalize()
        • DocumentProcessor.find_duplicates()
        • DocumentProcessor.detect_pii()
        • DocumentProcessor.redact()
        • DocumentProcessor.chunk_by_tokens()
        • DocumentProcessor.create_retriever()
        • DocumentProcessor.search()
      • ParsedDocument
        • ParsedDocument.source
        • ParsedDocument.content
        • ParsedDocument.metadata
        • ParsedDocument.elements
        • ParsedDocument.from_documents()
        • ParsedDocument.to_dict()
        • ParsedDocument.to_json()
        • ParsedDocument.to_langchain_documents()
        • ParsedDocument.__init__()
      • DocumentElement
        • DocumentElement.text
        • DocumentElement.element_type
        • DocumentElement.page_number
        • DocumentElement.bbox
        • DocumentElement.reading_order
        • DocumentElement.confidence
        • DocumentElement.metadata
        • DocumentElement.__init__()
      • DocumentParser
        • DocumentParser.__init__()
        • DocumentParser.parse()
        • DocumentParser.parse_multiple()
        • DocumentParser.get_loaded_files()
    • Document Intelligence
      • DocumentIntelligence
        • DocumentIntelligence.__init__()
        • DocumentIntelligence.classify()
        • DocumentIntelligence.extract_entities()
        • DocumentIntelligence.extract()
      • RuleBasedSchemaExtractor
        • RuleBasedSchemaExtractor.extract()
      • Evidence
        • Evidence.quote
        • Evidence.source
        • Evidence.element_index
        • Evidence.page_number
        • Evidence.bbox
        • Evidence.start_offset
        • Evidence.end_offset
        • Evidence.__init__()
      • ExtractedEntity
        • ExtractedEntity.entity_type
        • ExtractedEntity.value
        • ExtractedEntity.normalized_value
        • ExtractedEntity.confidence
        • ExtractedEntity.evidence
        • ExtractedEntity.__init__()
      • DocumentClassification
        • DocumentClassification.label
        • DocumentClassification.confidence
        • DocumentClassification.candidates
        • DocumentClassification.method
        • DocumentClassification.__init__()
      • StructuredExtraction
        • StructuredExtraction.values
        • StructuredExtraction.fields
        • StructuredExtraction.schema_name
        • StructuredExtraction.missing_required
        • StructuredExtraction.method
        • StructuredExtraction.to_dict()
        • StructuredExtraction.to_json()
        • StructuredExtraction.__init__()
      • FieldExtraction
        • FieldExtraction.value
        • FieldExtraction.confidence
        • FieldExtraction.status
        • FieldExtraction.evidence
        • FieldExtraction.__init__()
      • SchemaExtractionBackend
        • SchemaExtractionBackend.extract()
        • SchemaExtractionBackend.__init__()
      • classify_document()
      • extract_entities()
      • SchemaExtractionBackend
        • SchemaExtractionBackend.extract()
        • SchemaExtractionBackend.__init__()
      • RuleBasedSchemaExtractor
        • RuleBasedSchemaExtractor.extract()
    • Document Transformation and Privacy
      • DocumentChunk
        • DocumentChunk.content
        • DocumentChunk.chunk_index
        • DocumentChunk.source
        • DocumentChunk.start_offset
        • DocumentChunk.end_offset
        • DocumentChunk.page_numbers
        • DocumentChunk.element_indices
        • DocumentChunk.element_types
        • DocumentChunk.metadata
        • DocumentChunk.__init__()
      • DuplicateGroup
        • DuplicateGroup.representative_index
        • DuplicateGroup.duplicate_indices
        • DuplicateGroup.similarity
        • DuplicateGroup.exact
        • DuplicateGroup.__init__()
      • DuplicateReport
        • DuplicateReport.groups
        • DuplicateReport.compared_count
        • DuplicateReport.threshold
        • DuplicateReport.method
        • DuplicateReport.__init__()
      • PIIMatch
        • PIIMatch.category
        • PIIMatch.value
        • PIIMatch.start_offset
        • PIIMatch.end_offset
        • PIIMatch.confidence
        • PIIMatch.source
        • PIIMatch.element_index
        • PIIMatch.page_number
        • PIIMatch.__init__()
      • RedactionResult
        • RedactionResult.content
        • RedactionResult.redacted_document
        • RedactionResult.redactions
        • RedactionResult.redaction_count
        • RedactionResult.source
        • RedactionResult.replacement
        • RedactionResult.__init__()
      • chunk_document()
      • detect_duplicates()
      • detect_pii()
      • normalize_document()
      • normalize_text()
      • redact_document()
      • chunk_document()
      • normalize_text()
      • normalize_document()
      • detect_duplicates()
      • detect_pii()
      • redact_document()
    • Configuration
    • Utilities
      • detect_file_type()
      • is_supported_file()
      • validate_file_path()
      • get_file_info()
    • Loaders
      • Main File Loaders
        • FileLoader
        • load_document()
        • FileResourceLimits
      • File Load Module
        • Base File Loader
        • Text File Loader
        • CSV File Loader
        • JSON File Loader
        • DOCX File Loader
        • HTML File Loader
      • PDF Load Module
        • PDF Loader Classes
        • Base PDF Loader
        • PyPDF Loader
        • Unstructured PDF Loader
        • Amazon Textract Loader
        • Mathpix Loader
        • PDFPlumber Layout Loader
        • PDFPlumber Loader
        • PyPDFium2 Loader
        • PyMuPDF Loader
        • PyMuPDF4LLM Loader
        • OpenDataLoader PDF Loader
    • Retrieval
      • BM25Index
        • BM25Index.__init__()
        • BM25Index.search()
      • EmbeddingBackend
        • EmbeddingBackend.embed_documents()
        • EmbeddingBackend.embed_query()
        • EmbeddingBackend.__init__()
      • HashingEmbedder
        • HashingEmbedder.__init__()
        • HashingEmbedder.embed_documents()
        • HashingEmbedder.embed_query()
      • HybridRetriever
        • HybridRetriever.__init__()
        • HybridRetriever.search()
      • InMemoryVectorStore
        • InMemoryVectorStore.__init__()
        • InMemoryVectorStore.add()
        • InMemoryVectorStore.replace_source()
        • InMemoryVectorStore.list_chunks()
        • InMemoryVectorStore.search()
        • InMemoryVectorStore.health_check()
      • OpenAICompatibleEmbedder
        • OpenAICompatibleEmbedder.__init__()
        • OpenAICompatibleEmbedder.embed_documents()
        • OpenAICompatibleEmbedder.embed_query()
      • Reranker
        • Reranker.score()
        • Reranker.__init__()
      • RetrievalResult
        • RetrievalResult.chunk
        • RetrievalResult.score
        • RetrievalResult.rank
        • RetrievalResult.lexical_score
        • RetrievalResult.vector_score
        • RetrievalResult.reranker_score
        • RetrievalResult.metadata
        • RetrievalResult.__init__()
      • SQLiteVectorStore
        • SQLiteVectorStore.__init__()
        • SQLiteVectorStore.add()
        • SQLiteVectorStore.replace_source()
        • SQLiteVectorStore.list_chunks()
        • SQLiteVectorStore.search()
        • SQLiteVectorStore.health_check()
        • SQLiteVectorStore.close()
      • Tokenizer
        • Tokenizer.count_tokens()
        • Tokenizer.__init__()
      • VectorStore
        • VectorStore.add()
        • VectorStore.search()
        • VectorStore.__init__()
      • chunk_document_by_tokens()
      • cosine_similarity()
      • evaluate_retrieval()
      • mean_reciprocal_rank()
      • ndcg_at_k()
      • precision_at_k()
      • recall_at_k()
      • HashingEmbedder
        • HashingEmbedder.__init__()
        • HashingEmbedder.embed_documents()
        • HashingEmbedder.embed_query()
      • OpenAICompatibleEmbedder
        • OpenAICompatibleEmbedder.__init__()
        • OpenAICompatibleEmbedder.embed_documents()
        • OpenAICompatibleEmbedder.embed_query()
      • HybridRetriever
        • HybridRetriever.__init__()
        • HybridRetriever.search()
      • SQLiteVectorStore
        • SQLiteVectorStore.__init__()
        • SQLiteVectorStore.add()
        • SQLiteVectorStore.replace_source()
        • SQLiteVectorStore.list_chunks()
        • SQLiteVectorStore.search()
        • SQLiteVectorStore.health_check()
        • SQLiteVectorStore.close()
      • precision_at_k()
      • recall_at_k()
      • mean_reciprocal_rank()
      • ndcg_at_k()
      • evaluate_retrieval()
      • RetrievalResult
        • RetrievalResult.chunk
        • RetrievalResult.score
        • RetrievalResult.rank
        • RetrievalResult.lexical_score
        • RetrievalResult.vector_score
        • RetrievalResult.reranker_score
        • RetrievalResult.metadata
        • RetrievalResult.__init__()
      • Tokenizer
        • Tokenizer.count_tokens()
        • Tokenizer.__init__()
      • EmbeddingBackend
        • EmbeddingBackend.embed_documents()
        • EmbeddingBackend.embed_query()
        • EmbeddingBackend.__init__()
      • Reranker
        • Reranker.score()
        • Reranker.__init__()
      • VectorStore
        • VectorStore.add()
        • VectorStore.search()
        • VectorStore.__init__()
      • chunk_identity()
    • Logging
  • Retrieval Evaluation and Benchmarks
    • End-to-end ingestion and queue benchmark
    • Recorded local synthetic baseline
    • Document intelligence quality evaluation

Additional Resources

  • Production Monitoring
    • Start the monitoring stack
    • Provisioned dashboards and metrics
    • Retention and persistence
  • Backup and Restore
    • Create a backup
    • Restore into a new directory
    • Recovery verification
    • Limitations
  • GitHub Repository
Automated Document Parser
  • Search


© Copyright 2026, Pulkit Dhingra.

Built with Sphinx using a theme provided by Read the Docs.