worship / document_processing_agent.py

Commit History

  1. Add name translation fix for OPUS-MT - correct 'sand geese' to 'Zhang Shaian'⁠

    Peter Yang
    e632f5c
  2. Revert to OPUS-MT translation by default - better name handling⁠

    Peter Yang
    f04ca50

  1. Fix translation hallucinations by adding stop sequences and improving cleanup⁠

    Peter Yang
    44c353a
  2. Improve translation prompt to ensure completeness for titles and all sentences

    Peter Yang
    531486f
  3. Improve translation completeness: better paragraph splitting for headings, improved prompts, lower min length for titles

    Peter Yang
    d3816fa
  4. Fix: Enable PDF processing for content extraction and improve short translation handling

    Peter Yang
    9124732
  5. Fix Qwen2.5 translation truncation: increase max_length to 1024, dynamic max_new_tokens (300-800), less aggressive cleanup

    Peter Yang
    1c3d743
  6. Remove unused messages variable

    Peter Yang
    52fab4c
  7. Fix: Save bilingual file to current directory, prevent PDF/bilingual file duplication, ensure Message section only uses bilingual content

    Peter Yang
    917635f
  8. Integrate improved Qwen2.5 translation into document_processing_agent with fallback to OPUS-MT

    Peter Yang
    b68a16e

  1. Fix: Use actual bilingual file from document_sources instead of hardcoded test file

    Peter Yang
    6cea639
  2. Initial commit for HF Space deployment

    Peter Yang
    3307396