Skip to content

About

Self-hosted filing research with semantic search, source citations, scoped brief review and configurable OIDC. Python/PostgreSQL; MIT licensed.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FilingLens · Source-linked filing research

Deploy your instance · Try the demo · Demo script · Verification · Known limits

Scenario

An analyst wants to know where an issuer expects sales to land this year. They type revnue guidnce?, inspect the cited filing and save a brief. A different supervisor checks that exact revision before accepting it.

FilingLens connects each supported answer to its source. It interprets incomplete questions, corrects supported spelling errors and preserves issuer permissions. It also calculates supported revenue comparisons from identified source cells.

FilingLens research workspace with a source-linked answer

What you can try

Task Example Result
Find an issuer Aldar Systms A suggestion for Alder Systems, subject to your access
Complete a question where are sal A guidance question that you can select before running
Correct spelling revnue guidnce? The corrections and supported guidance, including its renewal condition
Ask a natural question where are sales expected to land this year? An interpretation linked to the 2026 guidance sources
Compare revenue Compare Q2 2026 revenue year over year 30.00%, with both source cells
Ask a follow-up what about 2025? 33.33%, using the prior comparison in the same session
Verify a brief Inspect and confirm each claim Submission of the verified revision for separate review

Use the issuer, cutoff and source filters in the demo script for these examples. The examples use fictional historical data. They do not use live filings, live news or investment forecasts.

Deploy on your own infrastructure

Use the deployment guide to configure your database, accounts, source rights and HTTPS origin. The package includes a non-root container, private file secrets, health checks and optional OpenID Connect sign-in. No particular organization, hosting vendor or identity provider is required. The clean deployment profile creates no demo users or source documents.

The existing strict intake contract supports your own permitted recorded captures and source adapters. Source rights remain explicit. A connector does not grant permission to retain or process content. The local MiniLM encoder does not transmit research questions or source text. Each operator verifies their own data, tenant, backups, host and acceptance evidence.

Try the demo on Windows

You need Windows, Python 3.14 and Chrome or Edge. The first setup needs internet access to download the pinned dependencies and local model. Download the source from Code → Download ZIP, or clone this repository. Open PowerShell in the extracted project directory.

python scripts/verify_frozen.py
python scripts/dev.py setup
python scripts/dev.py run

Open https://127.0.0.1:8843. Use analyst and its generated password from .runtime/data/credentials.json. The setup guide explains the local certificate, account roles and shutdown steps. Passwords, database files and model weights are not included in this repository.

Research, review and control

Python handles the business rules. PostgreSQL stores durable transactions and supports retrieval. Local MiniLM embeddings support semantic search. JavaScript handles browser interactions. Questions and source text stay local during research. Read the language decision for the Python, Go and Rust comparison.

The demo workspace serves eleven separate accounts. Operator deployments use their own account configuration. Research accounts see only their permitted issuers. Supervisors review submitted revisions. Operational accounts have separate controls and no research search boxes.

The source reader keeps the cited document readable

Capability Boundary
Filing and news research Recorded development filings and authored synthetic news
Source inspection Exact evidence, version history and current source rights
Financial comparisons Supported consolidated Q2 USD tables with verified units and cells
Brief review Immutable revisions, explicit claim checks and scoped supervisor decisions
Operational recovery Durable stops, rights checks, encrypted backups and separate restoration gates

Verification and status

The complete 170-case regression passed with real PostgreSQL. A later 21-case deployment suite also passed, covering 172 distinct cases across the two overlapping batches. Chrome and Edge passed 36 exact demo journeys, including 150 positive answers. Separate visual, search and guide suites each passed 22 journeys across all eleven accounts. Native keyboard, zoom, review and targeted recovery checks also passed.

These results were observed on November 27, 2026. The Linux Compose workflow also passed seven deployment/recovery checks. The deployment ledger retains repaired findings and earlier failures. Verification links the receipts, repaired findings and reproduction commands. GitHub checks report their own results. A workflow badge does not replace the local browser evidence.

Status: configurable self-hosted deployment, with operator go-live checks. The demo remains available. The deployment profile supports clean accounts, strict transport settings and optional federated sign-in. The readiness record separates engineering results from each operator's acceptance decision. Manual accessibility, corpus quality and representative operating evidence must match the intended use. No hosting purchase, live supplier contract, external inference service, export, watchlist or alert is bundled.

Documentation and support

FilingLens is available under the MIT license. You can use, adapt and redistribute the software under its terms. Third-party software and source-content rights remain separate.

Search keywords: FilingLens, SEC filings, EDGAR, 8-K, 10-Q, 10-K, equity research, semantic search, query expansion, autocomplete, typo correction, local NLP, MiniLM, source citations, financial analysis, research briefs, PostgreSQL, Python, Windows, Linux, Docker, self-hosting, OIDC, accessibility.

About

Self-hosted filing research with semantic search, source citations, scoped brief review and configurable OIDC. Python/PostgreSQL; MIT licensed.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages