vector-auditor / src /agents /document_agent.py

Commit History

10 days ago

  1. feat: 10 free upgrades — streaming upload, cache invalidation, hybrid search, ONNX reranker, SQLAlchemy pool tuning, batch embed cache, semantic chunking, Prometheus histograms, DLQ auto-retry, structured logging+OTel

    AkshayM
    3e047b8

  1. Remove forced section headers from SYSTEM_WHITE_BOX — /query returns raw LLM output

    AkshayM
    d134998
  2. Parallelize multi-doc retrieval with asyncio.gather

    AkshayM
    a0f0ee1
  3. Restore JSON parsing in analyze_document — populate all DocumentAnalysis fields

    AkshayM
    06a5fdf

  1. Append verification warning to answer so frontend always shows it

    AkshayM
    1a0d1f5
  2. Speed up analyze: use black_box mode (no thinking, 2K tokens) instead of white_box

    AkshayM
    3a19fe3
  3. Remove _strip_headers post-processing — let LLM output pass through as-is

    AkshayM
    bededb8
  4. Strip headers server-side + stronger prompt to enforce plain-text output

    AkshayM
    f4d05f9
  5. Force plain-text output: remove all headers/structure from LLM prompt

    AkshayM
    d62b685
  6. Simplify document_agent: drop JSON parsing, return raw LLM output; fix llm.py syntax errors

    AkshayM
    7fdb111
  7. fix: strict query-only output in analyze — no extra sections⁠

    AkshayM
    79d0c2f
  8. feat: query-driven analyze + context window bump⁠

    AkshayM
    4127275
  9. fix: make analyze JSON structure query-driven instead of rigid template⁠

    AkshayM
    6d2e6ad
  10. fix: normalize all LLM JSON fields + wire cross_doc/per_doc⁠

    AkshayM
    3788bc0
  11. fix: normalize list-typed limitations/methodology from LLM JSON⁠

    AkshayM
    ede9cc4
  12. fix: thinking.type enabled for analyze mode + status event⁠

    AkshayM
    84db387

  1. feat: provider-based LLM profiles + per-request model switching⁠

    AkshayM
    9a38dd4
  2. fix: reduce max_citations_total=10, retrieve_k=15, rerank_top_k=10 + filter chunks <50 chars

    AkshayM
    542c221
  3. chore: white-box temperature 0.75 -> 0.3 (stream + analyze)

    AkshayM
    afb97f7
  4. feat: remove per-doc citation cap, bump rerank_top_k=20, max_citations_total=50, expose all retrieved citations

    AkshayM
    a2a3e4f
  5. fix: retrieve_k=20, strengthen system prompts to prevent citation hallucination, add _sanitize_citations post-processing

    AkshayM
    12bcac9
  6. fix: black-box concise -> medium reasoning, white-box researcher + analyze -> high

    AkshayM
    438e3b0
  7. fix: use high reasoning for verify, medium for gaps + full citation text for gaps

    AkshayM
    13ff565
  8. feat: add page_width/page_height to citations for frontend bbox scaling + combined bbox+dimension extraction

    AkshayM
    2c0e3a3
  9. fix: tune Mercury 2 params — use valid temp range (0.5-0.75), instant reasoning for black-box, high for white-box, reasoning_summary=false for factual paths

    AkshayM
    835aa37
  10. fix: use full citation text in _verify instead of truncated 300-char prefix

    AkshayM
    f545531
  11. feat: per-mode reasoning_effort (high for white_box/analyze) + max_tokens 5120

    AkshayM
    964389b

  1. chore: increase white_box max_tokens 3048 -> 4096 for more detailed answers

    AkshayM
    c44b309
  2. feat: on-demand pdfplumber bbox extraction for citation highlighting

    AkshayM
    49aaae7

  1. perf: revert to all-MiniLM-L6-v2, query embed cache, fire-and-forget Cloudinary, pre-warm reranker, reduce top-k

    AkshayM
    1476572

  1. perf: upgrade embedding to all-mpnet-base-v2, add cross-encoder reranker, LRU cache, enable PII by default

    AkshayM
    9147527

  1. production hardening: circuit breakers, graceful degradation, health checks, parallel uploads, HF Spaces deploy config

    AkshayM
    fc2fe9f

  1. fix: query and stream_query now greet back instead of analyzing greetings

    AkshayM
    b7e6bc7
  2. fix: analyze endpoint no-ops on greetings and when no documents selected

    AkshayM
    a775719
  3. fix: normalize filenames (space/underscore) for doc counting in analyze tab, add document_id to Citation model

    AkshayM
    4bec4c4
  4. fix: analyze tab — documents_analyzed now matches actual citation sources, max_tokens=4096, key_findings 4-7

    AkshayM
    15d6801
  5. feat: white-box mode now uses max_tokens=3048 and structured answer output

    AkshayM
    a206720
  6. feat: /analyze now fairly samples all selected documents, adds cross_document_comparison + per_document_summary fields to response

    AkshayM
    cd3b9ef
  7. fix: 15 critical/high bugs across codebase⁠

    AkshayM
    da3be01

  1. fix models.py: match Neon schema varchar sizes, add email unique constraint

    AkshayM
    167c070