How nuwal01/investor-doc-finder works
IDF turns a company-and-year query into a verified investor-document URL: it parses and resolves the request, checks cached results, searches country-appropriate sources, verifies candidate content, then returns and caches a result. The README also documents CLI and Streamlit use, worldwide EDGAR/India/web discovery, and graceful EDGAR HTML-to-PDF conversion. The graph includes documented capabilities whose implementation was not sampled; their links are omitted where no relationship was evidenced.
Main entry points: agent.py Agent graph · pdf_delivery.py PDF delivery · web_search.py Web search · api.py HTTP API
Components 25
User interfaces
- CLI
main.py - Streamlit UI
streamlit_app.py - HTTP API
api.py - Browser frontend
frontend/app.js
Agent workflow
- Agent graph
agent.py - Intent parsing
intent.py - LLM client
llm_client.py - Company resolver
resolver.py - Fund filtering
fund_filter.py
Document discovery
- SEC EDGAR
sources/edgar.py - NSE source
sources/nse.py - Company site
sources/company_site.py - India aggregators
sources/aggregators.py - Web search
sources/web_search.py - Source contract
sources/base.py
Verification and state
- Content verifier
verify.py - Result cache
cache.py - Request history
history.py - Cache resweep
sweep_cache.py - PDF delivery
pdf_delivery.py
Other components
- User
- LLM providers
- SEC services
- Search providers
- wkhtmltopdf
Connections 28
- User → CLI: queries
README.md - User → Streamlit UI: queries
README.md - CLI → Agent graph: runs
main.py - Streamlit UI → Agent graph: runs
streamlit_app.py - HTTP API → Agent graph: invokes
api.py - Agent graph → Intent parsing: parses
agent.py - Intent parsing → LLM client: calls
intent.py - LLM client → LLM providers: requests completions
llm_client.py - Agent graph → Company resolver: resolves company
agent.py - Agent graph → Fund filtering: filters candidates
agent.py - Agent graph → Result cache: checks and writes
agent.py - Agent graph → SEC EDGAR: fetches candidates
agent.py - Agent graph → NSE source: fetches candidates
agent.py - Agent graph → Company site: fetches candidates
agent.py - Agent graph → India aggregators: fetches candidates
agent.py - Agent graph → Web search: fetches candidates
agent.py - Company site → Web search: reuses search
sources/company_site.py - India aggregators → Web search: reuses search
sources/aggregators.py - Agent graph → Content verifier: verifies candidates
agent.py - Cache resweep → Content verifier: rechecks cached URLs
sweep_cache.py - Cache resweep → Result cache: reads and purges
sweep_cache.py - PDF delivery → SEC EDGAR: converts filings
pdf_delivery.py - PDF delivery → wkhtmltopdf: renders PDF
README.md - HTTP API → PDF delivery: delivers documents
api.py - Streamlit UI → PDF delivery: delivers documents
streamlit_app.py - HTTP API → Request history: records history
api.py - SEC EDGAR → SEC services: queries filings
sources/edgar.py - Web search → Search providers: searches providers
sources/web_search.py