Skip to content

SEC 10-K analysis example DAG using LlamaIndex for Common.ai provider#67671

Merged
gopidesupavan merged 1 commit into
mainfrom
aip99-llamaindex-example
May 30, 2026
Merged

SEC 10-K analysis example DAG using LlamaIndex for Common.ai provider#67671
gopidesupavan merged 1 commit into
mainfrom
aip99-llamaindex-example

Conversation

@vikramkoka
Copy link
Copy Markdown
Contributor

Two Dags demonstrating a multi-company financial research pipeline using real SEC 10-K filings fetched live from the EDGAR public API:

  • Indexing DAG (weekly): fetches 10-K filings by stock ticker, extracts Risk Factors and MD&A sections, builds per-company vector indexes via LlamaIndexEmbeddingOperator with DTM fan-out.
  • Analysis DAG (on-demand): analyst submits tickers and a comparison question via HITLEntryOperator, LLM decomposes into company-specific sub-questions (N decided at runtime), retrieves from per-company indexes via DTM, synthesizes a structured report (AnalysisReport Pydantic model with UsageLimits), formats for human review, and gates on ApprovalOperator.

Features showcased: Dynamic Task Mapping, structured LLM output, UsageLimits, HITL input and approval, and live external API integration.

Default tickers: AAPL, MSFT, UBER, LYFT, AMZN.


Was generative AI tooling used to co-author this PR?
  • [ x] Yes (please specify the tool below)

Generated-by: [Claude] following the guidelines


…on.ai provider

 Two Dags demonstrating a multi-company financial research pipeline
  using real SEC 10-K filings fetched live from the EDGAR public API:

  - Indexing DAG (weekly): fetches 10-K filings by stock ticker,
    extracts Risk Factors and MD&A sections, builds per-company
    vector indexes via LlamaIndexEmbeddingOperator with DTM fan-out.
  - Analysis DAG (on-demand): analyst submits tickers and a comparison
    question via HITLEntryOperator, LLM decomposes into company-specific
    sub-questions (N decided at runtime), retrieves from per-company
    indexes via DTM, synthesizes a structured report (AnalysisReport
    Pydantic model with UsageLimits), formats for human review, and
    gates on ApprovalOperator.

  Features showcased: Dynamic Task Mapping, structured LLM output,
  UsageLimits, HITL input and approval, live external API integration,
  DAG-level Params.

  Default tickers: AAPL, MSFT, UBER, LYFT, AMZN.
@gopidesupavan gopidesupavan merged commit df708b6 into main May 30, 2026
143 checks passed
@gopidesupavan gopidesupavan deleted the aip99-llamaindex-example branch May 30, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants