vector-auditor / src /services

Commit History

Tune Presidio: strict mode masks names+orgs for NDA, light mode skips them for research
073907c

AkshayM commited on

Swap pdfplumber β†’ pypdf for upload parsing (3x faster text extraction)
a965d17

AkshayM commited on

Handle null content in LLM response (NoneType len error)
102af7a

AkshayM commited on

Auto-fallback to mercury when minimax fails (chat + stream)
ed71b77

AkshayM commited on

Skip PERSON/LOCATION/ORG in PII masking β€” only mask contact & financial IDs
ebf84fb

AkshayM commited on

Safe minimax defaults: no thinking, temp=0.3, max_tokens=4096
536fca2

AkshayM commited on

Profile-aware API key: mercury uses INCEPTION_API_KEY, minimax uses LLM_API_KEY
fe833f1

AkshayM commited on

Minimax uses LLM_BASE_URL env var; mercury always uses inceptionlabs.ai
e2b443d

AkshayM commited on

Remove LLM_BASE_URL env override β€” use profile's own base_url
08f6f02

AkshayM commited on

Keep only mercury + minimax profiles; remove custom profile logic entirely
980aa8d

AkshayM commited on

Drop custom profile as default β€” always default to mercury; minimax remains selectable
17b877a

AkshayM commited on

Speed up analyze: use black_box mode (no thinking, 2K tokens) instead of white_box
3a19fe3

AkshayM commited on

Simplify document_agent: drop JSON parsing, return raw LLM output; fix llm.py syntax errors
7fdb111

AkshayM commited on

feat: query-driven analyze + context window bump
4127275

AkshayM commited on

fix: thinking.type enabled for analyze mode + status event
84db387

AkshayM commited on

fix: increase httpx timeout 120s -> 300s/600s for thinking models
6addc68

AkshayM commited on

fix: thinking.type enabled instead of adaptive for NVIDIA API
1c1c87d

AkshayM commited on

feat: minimax temp=0.1 + thinking adaptive + json output for analyze
28a6ad4

AkshayM commited on

fix: handle LLM_BASE_URL with or without /chat/completions suffix
cc8bded

AkshayM commited on

feat: provider-based LLM profiles + per-request model switching
9a38dd4

AkshayM commited on

feat: add page_width/page_height to citations for frontend bbox scaling + combined bbox+dimension extraction
2c0e3a3

AkshayM commited on

fix: use pdfplumber text for chunking to ensure accurate page numbers for citations
247a9a5

AkshayM commited on

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
835aa37

AkshayM commited on

fix: keep MarkItDown for chunking, pass pdfplumber page texts separately so page numbers align for bbox extraction
e01df47

AkshayM commited on

feat: per-mode reasoning_effort (high for white_box/analyze) + max_tokens 5120
964389b

AkshayM commited on

fix: handle None text in guardrails check_input (crashed on analyze with null question)
3556ab7

AkshayM commited on

feat: on-demand pdfplumber bbox extraction for citation highlighting
49aaae7

AkshayM commited on

feat: harden prompt injection guardrails with 11 detection layers + fix missing guardrails on /analyze
4eb6f45

AkshayM commited on

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

AkshayM commited on

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

AkshayM commited on

feat: /analyze now fairly samples all selected documents, adds cross_document_comparison + per_document_summary fields to response
cd3b9ef

AkshayM commited on

fix: enable NeMo Guardrails with correct parameters.api_key/parameters.base_url, add PII detection to guardrails flow, set PII_ENABLED=true
6ca471b

AkshayM commited on

fix: correct Inception API base URL (inceptionlabs.ai, not inception.ai)
288a113

AkshayM commited on

fix: add generic LLM_API_KEY/LLM_BASE_URL/LLM_MODEL for any OpenAI-compatible API; fall back from broken api.inception.ai
5e9bd07

AkshayM commited on

fix: handle LLM connection errors gracefully (SSL/connect errors β†’ 502); convert Analyze 500 β†’ 502 with clear message
5d8e007

AkshayM commited on

fix: 15 critical/high bugs across codebase
da3be01

AkshayM commited on

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

AkshayM commited on