diff --git a/apps/api/alembic/versions/f6a7b8c9d0e1_add_demo_materializations.py b/apps/api/alembic/versions/f6a7b8c9d0e1_add_demo_materializations.py new file mode 100644 index 000000000..f6277c983 --- /dev/null +++ b/apps/api/alembic/versions/f6a7b8c9d0e1_add_demo_materializations.py @@ -0,0 +1,61 @@ +"""add demo materializations + +Revision ID: f6a7b8c9d0e1 +Revises: e5f6a7b8c9d0 +Create Date: 2026-05-12 08:25:00.000000 + +""" + +from typing import Sequence, Union + +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision: str = "f6a7b8c9d0e1" +down_revision: Union[str, Sequence[str], None] = "e5f6a7b8c9d0" +branch_labels: Union[str, Sequence[str], None] = None +depends_on: Union[str, Sequence[str], None] = None + + +def upgrade() -> None: + """Upgrade schema.""" + op.create_table( + "demo_materializations", + sa.Column("id", sa.String(length=36), nullable=False), + sa.Column("user_id", sa.Text(), nullable=False), + sa.Column("namespace", sa.String(length=255), nullable=False), + sa.Column("demo_source_id", sa.String(length=128), nullable=False), + sa.Column("document_id", sa.String(length=36), nullable=False), + sa.Column("created_at", sa.DateTime(), nullable=False), + sa.Column("updated_at", sa.DateTime(), nullable=False), + sa.ForeignKeyConstraint( + ["document_id"], + ["documents.document_id"], + ondelete="CASCADE", + ), + sa.ForeignKeyConstraint(["user_id"], ["user.id"], ondelete="RESTRICT"), + sa.PrimaryKeyConstraint("id"), + sa.UniqueConstraint( + "user_id", + "namespace", + "demo_source_id", + name="uq_demo_materializations_scope_source", + ), + ) + op.create_index( + "idx_demo_materializations_document", + "demo_materializations", + ["document_id"], + unique=False, + ) + + +def downgrade() -> None: + """Downgrade schema.""" + op.drop_index( + "idx_demo_materializations_document", + table_name="demo_materializations", + ) + op.drop_table("demo_materializations") diff --git a/apps/api/app/api/v1/api_v1.py b/apps/api/app/api/v1/api_v1.py index 023fb7621..dab7d14cb 100644 --- a/apps/api/app/api/v1/api_v1.py +++ b/apps/api/app/api/v1/api_v1.py @@ -4,6 +4,7 @@ from app.api.v1.routes import ( api_key, + demo, documents, guest, jobs, @@ -36,6 +37,9 @@ # Unified Jobs routes api_router.include_router(jobs.router, prefix="/jobs", tags=["Jobs"]) +# Demo documents +api_router.include_router(demo.router, prefix="/demo", tags=["Demo Documents"]) + # Retrieval api_router.include_router(retrieval.router, prefix="/retrieval", tags=["Retrieval"]) diff --git a/apps/api/app/api/v1/routes/demo.py b/apps/api/app/api/v1/routes/demo.py new file mode 100644 index 000000000..330a5167c --- /dev/null +++ b/apps/api/app/api/v1/routes/demo.py @@ -0,0 +1,158 @@ +"""Notebook demo document catalog routes.""" + +from __future__ import annotations + +from typing import Any + +from app.services.demo_document_service import DemoDocumentService +from app.services.rate_limit.dependencies import CurrentUser, with_current_user +from fastapi import APIRouter, Depends, Query +from fastapi.responses import FileResponse +from pydantic import BaseModel, Field +from sqlalchemy.ext.asyncio import AsyncSession + +from shared.core.database import get_db +from shared.core.exceptions.domain_exceptions import NotFoundException + +router = APIRouter(tags=["Demo Documents"]) + +_demo_document_service = DemoDocumentService() + + +class DemoMaterializeRequest(BaseModel): + """Request to copy selected canonical demo sources into a namespace.""" + + namespace: str | None = Field(None, description="Target retrieval namespace") + demo_source_ids: list[str] = Field( + default_factory=list, + min_length=1, + description="Canonical demo source IDs to materialize", + ) + + +@router.get("/catalog") +async def get_demo_catalog() -> dict[str, Any]: + """Return API-owned canonical demo source metadata and curated Q/A.""" + return _demo_document_service.get_catalog() + + +@router.get("/sources/{demo_source_id}/chunks") +async def list_demo_source_chunks( + demo_source_id: str, + page: int = Query(1, ge=1, description="Page number"), + page_size: int = Query(50, ge=1, le=200, description="Items per page"), +) -> dict[str, Any]: + """Return paginated canonical chunks for a demo source.""" + response = _demo_document_service.list_chunks( + demo_source_id=demo_source_id, + page=page, + page_size=page_size, + ) + if response is None: + raise _demo_source_not_found(demo_source_id) + return response + + +@router.get("/sources/{demo_source_id}/chunks/{demo_chunk_id}") +async def get_demo_source_chunk( + demo_source_id: str, + demo_chunk_id: str, +) -> dict[str, Any]: + """Return one canonical demo chunk for citation focusing.""" + response = _demo_document_service.get_chunk( + demo_source_id=demo_source_id, + demo_chunk_id=demo_chunk_id, + ) + if response is None: + raise NotFoundException( + resource="Demo document chunk", + resource_id=demo_chunk_id, + internal_message="Demo document chunk not found", + ) + return response + + +@router.get("/sources/{demo_source_id}/original") +async def get_demo_source_original(demo_source_id: str) -> FileResponse: + """Return the canonical original file for preview.""" + file_path = _demo_document_service.get_original_file_path( + demo_source_id=demo_source_id, + ) + if file_path is None: + raise _demo_source_not_found(demo_source_id) + + return FileResponse( + path=file_path, + media_type="application/pdf", + filename=file_path.name, + content_disposition_type="inline", + ) + + +@router.get("/sources/{demo_source_id}/assets/{asset_path:path}") +async def get_demo_source_asset( + demo_source_id: str, + asset_path: str, +) -> FileResponse: + """Return a canonical parsed media or table asset for preview.""" + file_path = _demo_document_service.get_asset_file_path( + demo_source_id=demo_source_id, + asset_path=asset_path, + ) + if file_path is None: + raise _demo_source_not_found(demo_source_id) + + return FileResponse( + path=file_path, + filename=file_path.name, + content_disposition_type="inline", + ) + + +@router.post("/materializations") +async def materialize_demo_sources( + payload: DemoMaterializeRequest, + current_user: CurrentUser = Depends(with_current_user), + db: AsyncSession = Depends(get_db), +) -> dict[str, Any]: + """Copy canonical demo sources into the authenticated user's namespace.""" + namespace = (payload.namespace or "default").strip() or "default" + try: + materialized_sources = await _demo_document_service.materialize_sources( + db, + user_id=current_user.user_id, + namespace=namespace, + demo_source_ids=payload.demo_source_ids, + ) + except KeyError as error: + raise _demo_source_not_found(str(error.args[0])) from error + + return { + "namespace": namespace, + "sources": [ + { + "demo_source_id": source.demo_source_id, + "document_id": source.document_id, + "status": source.status, + "title": source.title, + "mime_type": source.mime_type, + "size_bytes": source.size_bytes, + "chunk_count": source.chunk_count, + "original_file": { + "url": f"/api/v1/demo/sources/{source.demo_source_id}/original", + "mime_type": source.mime_type, + "size_bytes": source.size_bytes, + "can_download": False, + }, + } + for source in materialized_sources + ], + } + + +def _demo_source_not_found(demo_source_id: str) -> NotFoundException: + return NotFoundException( + resource="Demo document source", + resource_id=demo_source_id, + internal_message="Demo document source not found", + ) diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/chunks.json b/apps/api/app/data/demo_documents/tsla-q4-2025/chunks.json new file mode 100644 index 000000000..7e7147254 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/chunks.json @@ -0,0 +1,3313 @@ +{ + "chunks": [ + { + "chunk_id": "15bcc860-b8d0-50c6-a627-66dbae67acd4", + "type": "table", + "content": "
Profitability$4.4B GAAP operating income in 2025; $1.4B in Q42025 marked a critical year for Tesla as we further expanded our mission and continued our transition from a hardware-centric business to a physical AI company. We laid the foundation for the future of Tesla as we further advanced FSD (Supervised) $^{4}$ , launched our Robotaxi service, began installing production lines for Cybercab and fine-tuned our production-primed Optimus design while expanding our AI training infrastructure.
$3.8B GAAP net income in 2025; $0.8B in Q4
$5.9B non-GAAP net income $^{1}$ in 2025; $1.8B in Q4
CashOperating cash flow of $14.7B in 2025; $3.8B in Q4Our approach to autonomous vehicles and humanoid robots mirrors the way we approached electric vehicles and energy storage – at the system level where we identify the limiting factor and develop bespoke and scalable solutions (batteries, power electronics, inverters, software, AI silicon, etc.) to optimize for cost, functionality, efficiency and safety. Our vertical integration has enabled us to achieve economies of scale in a profitable manner, quickly troubleshoot bottlenecks in production and iteratively optimize our technologies more rapidly than others.
Free cash flow $^{2}$ of $6.2B in 2025; $1.4B in Q4In 2025, we completed the refresh of our vehicle lineup with the launch of the new Model Y, including additional variants. We believe that maintaining an optimized and efficient product portfolio, with a continued focus on high-value features such as long range, best-in-class software and autonomy, is the correct strategy to win the autos market of the future. Similarly, we continued to evolve our energy offerings for commercial, utility and retail customers, as we position ourselves as a supplier of choice for clean, affordable and rapidly deployable energy capacity ahead of expected sustained demand growth for electricity.
$7.5B increase in our cash and investments $^{3}$ in 2025 to $44.1B
OperationsBegan removing safety monitor from our Robotaxis in Austin in JanuaryIn 2026, we will further invest in the infrastructure needed to support clean energy and transport and autonomous robots, including the ramp of six new production lines across vehicle, robots, energy storage and battery manufacturing, while further leveraging our existing factory, charging and service center footprint to support future growth.
Record Q4 & FY'25 energy storage deployments
Record vehicle deliveries in APAC
", + "path": "tables/table-0 Tesla 2025 Results.html", + "metadata": { + "length": 2783, + "summary": "table-1\nTesla reported strong 2025 financials with $4.4B operating income and expanded AI initiatives including Robotaxi and Optimus.", + "page_nums": [ + 11 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-0 Tesla 2025 Results.html", + "keywords": [ + "Profitability", + "Cash", + "Operations" + ], + "tokens": [] + } + }, + { + "chunk_id": "68a6be7d-c587-5c73-abf2-56f4686e28e6", + "type": "text", + "content": "[tables/table-0 Tesla 2025 Results.html]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->HIGHLIGHTS", + "metadata": { + "length": 83, + "summary": "", + "page_nums": [ + 1, + 3, + 11 + ], + "document_top_summary": "This document includes:", + "tokens": [], + "keywords": [], + "connect_to": [ + { + "target": "15bcc860-b8d0-50c6-a627-66dbae67acd4", + "relation": "embeds", + "ref": "[tables/table-0 Tesla 2025 Results.html]", + "position": { + "start": 0, + "end": 40 + } + } + ] + } + }, + { + "chunk_id": "481804a6-0fb5-52fc-bc47-ef5728621f6b", + "type": "table", + "content": "
($ in millions, except percentages and per share data)Q4-2024Q1-2025Q2-2025Q3-2025Q4-2025YoY
Total automotive revenues19,79813,96716,66121,20517,693-11%
Energy generation and storage revenue3,0612,7302,7893,4153,83725%
Services and other revenue2,8482,6383,0463,4753,37118%
Total revenues25,70719,33522,49628,09524,901-3%
Total gross profit4,1793,1533,8785,0545,00920%
Total GAAP gross margin16.3%16.3%17.2%18.0%20.1%386 bp
Operating expenses2,5962,7542,9553,4303,60039%
Income from operations1,5833999231,6241,409-11%
Operating margin6.2%2.1%4.1%5.8%5.7%-50 bp
Adjusted EBITDA (1) (2)4,3332,8143,4014,2274,154-4%
Adjusted EBITDA margin (1) (2)16.9%14.6%15.1%15.0%16.7%-17 bp
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840-61%
Net income attributable to common stockholders (non-GAAP) (1) (3)2,1079341,3931,7701,761-16%
EPS attributable to common stockholders, diluted (GAAP) (1)0.600.120.330.390.24-60%
EPS attributable to common stockholders, diluted (non-GAAP) (1) (3)0.600.270.400.500.50-17%
Net cash provided by operating activities4,8142,1562,5406,2383,813-21%
Capital expenditures (4)(2,780)(1,492)(2,394)(2,248)(2,393)-14%
Free cash flow (4)2,0346641463,9901,420-30%
Cash, cash equivalents and investments36,56336,99636,78241,64744,05921%
", + "path": "tables/table-1 Q4 2025 Financials.html", + "metadata": { + "length": 2894, + "summary": "table-2\nTable shows Tesla's quarterly financials through Q4 2025, including revenues, gross profit, operating income, and free cash flow in millions of dollars.", + "page_nums": [ + 11 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-1 Q4 2025 Financials.html", + "keywords": [ + "revenue", + "profit", + "cash flow" + ], + "tokens": [] + } + }, + { + "chunk_id": "31077385-2188-5cc5-bbfb-85e07e94c5c8", + "type": "table", + "content": "
($ in millions, except percentages and per share data)20212022202320242025YoY
Total automotive revenues47,23271,46282,41977,07069,526-10%
Energy generation and storage revenue2,7893,9096,03510,08612,77127%
Services and other revenue3,8026,0918,31910,53412,53019%
Total revenues53,82381,46296,77397,69094,827-3%
Total gross profit13,60620,85317,66017,45017,094-2%
Total GAAP gross margin25.3%25.6%18.2%17.9%18.0%16 bp
Operating expenses7,0837,1978,76910,37412,73923%
Income from operations6,52313,6568,8917,0764,355-38%
Operating margin12.1%16.8%9.2%7.2%4.6%-265 bp
Adjusted EBITDA (1)11,72219,39016,63116,05614,596-9%
Adjusted EBITDA margin (1)21.8%23.8%17.2%16.4%15.4%-104 bp
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794-46%
Net income attributable to common stockholders (non-GAAP) (2)7,71914,27610,8827,9605,858-26%
EPS attributable to common stockholders, diluted (GAAP)1.633.624.302.041.08-47%
EPS attributable to common stockholders, diluted (non-GAAP) (2)2.284.123.122.291.66-28%
Net cash provided by operating activities11,49714,72413,25614,92314,747-1%
Capital expenditures (3)(6,514)(7,163)(8,899)(11,342)(8,527)-25%
Free cash flow (3)4,9837,5614,3573,5816,22074%
Cash, cash equivalents and investments17,70722,18529,09436,56344,05921%
", + "path": "tables/table-2 Financial Data 2021-25.html", + "metadata": { + "length": 2897, + "summary": "table-3\nTable shows financial metrics from 2021 to 2025, including revenues, gross profit, operating income, and free cash flow in millions of dollars.", + "page_nums": [ + 11 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-2 Financial Data 2021-25.html", + "keywords": [ + "revenue", + "profit", + "cash flow" + ], + "tokens": [] + } + }, + { + "chunk_id": "8ef4ea32-6ed5-5aec-a413-6af0d752355b", + "type": "table", + "content": "
Q4-2024Q1-2025Q2-2025Q3-2025Q4-2025YoY
Model 3/Y production436,718345,454396,835435,826422,652-3%
Other models production22,72717,16113,40911,62411,706-48%
Total production459,445362,615410,244447,450434,358-5%
Model 3/Y deliveries471,930323,800373,728481,166406,585-14%
Other models deliveries23,64012,88110,39415,93311,642-51%
Total deliveries495,570336,681384,122497,099418,227-16%
of which subject to operating lease accounting26,96213,7216,67010,23010,996-59%
Cumulative $deliveries^{(1)}$ (all-time; mil)7.37.68.08.58.922%
Active FSD $Subscriptions^{(2)}$ (mil)0.80.80.91.01.138%
Total end of quarter operating lease (new vehicle) $count^{(3)}$ 180,523179,930172,882167,163163,075-10%
Global vehicle inventory (days of supply) $^{(4)}$ 122224101525%
Storage deployed (GWh)11.010.49.612.514.229%
Tesla locations1,3591,3901,4541,4981,55314%
Supercharger stations6,9757,1317,3777,7538,18217%
Supercharger connectors65,49567,31670,22873,81777,68219%
", + "path": "tables/table-3 Tesla Q4-2025 Data.html", + "metadata": { + "length": 2288, + "summary": "table-4\nTable shows Tesla's quarterly production, deliveries, and inventory from Q4 2024 to Q4 2025. Total deliveries dropped 16% YoY in Q4 2025.", + "page_nums": [ + 11 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-3 Tesla Q4-2025 Data.html", + "keywords": [ + "production", + "deliveries", + "inventory" + ], + "tokens": [] + } + }, + { + "chunk_id": "4c82227e-3ba3-5bb2-9d00-4397c1dc38f6", + "type": "table", + "content": "
20212022202320242025YoY
Model 3/Y production906,0321,298,4341,775,1591,679,3381,600,767-5%
Other models production24,39071,17770,82694,10553,900-43%
Total production930,4221,369,6111,845,9851,773,4431,654,667-7%
Model 3/Y deliveries911,2421,247,1461,739,7071,704,0931,585,279-7%
Other models deliveries24,98066,70568,87485,13350,850-40%
Total deliveries936,2221,313,8511,808,5811,789,2261,636,129-9%
of which subject to operating lease accounting60,91247,58272,22660,00341,617-31%
Cumulative $deliveries^{(1)}$ (all-time; mil)2.33.75.57.38.922%
Active FSD $Subscriptions^{(2)}$ (mil)0.40.50.60.81.138%
Total end of year operating lease (new vehicle) count120,342140,667176,564180,523163,075-10%
Global vehicle inventory (days of supply) $^{(3)}$ 61616131515%
Storage deployed (GWh)4.06.514.731.446.749%
Tesla locations6449631,2081,3591,55314%
Supercharger stations3,4764,6785,9526,9758,18217%
Supercharger connectors31,49842,41954,89265,49577,68219%
", + "path": "tables/table-4 Tesla 2021-2025 Data.html", + "metadata": { + "length": 2285, + "summary": "table-5\nTable shows Tesla's production, deliveries, and infrastructure metrics from 2021 to 2025. Total production and deliveries peaked in 2023 then declined by 2025.", + "page_nums": [ + 11 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-4 Tesla 2021-2025 Data.html", + "keywords": [ + "production", + "deliveries", + "growth" + ], + "tokens": [] + } + }, + { + "chunk_id": "60109008-6261-51e6-b202-093d904eb881", + "type": "text", + "content": "FINANCIAL SUMMARY\n(Unaudited)\n\n[tables/table-1 Q4 2025 Financials.html]\n\n(1) As a result of the adoption of the new crypto assets standard, the previously reported quarterly periods in 2024 have been recast.\n(2) Beginning in Q1'25, Adjusted EBITDA (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted.\n(3) Beginning in Q1'25, Net income attributable to common stockholders (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted.\n(4) Beginning in Q1'25, Capital expenditures is presented inclusive of purchases of energy generation and storage systems and all prior periods have been adjusted.\nFINANCIAL SUMMARY\n(Unaudited)\n\n[tables/table-2 Financial Data 2021-25.html]\n\n(1) Beginning in Q1'25, Adjusted EBITDA (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted.\n(2) Beginning in Q1'25, Net income attributable to common stockholders (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted.\n(3) Beginning in Q1'25, Capital expenditures is presented inclusive of purchases of energy generation and storage systems and all prior periods have been adjusted.\nOPERATIONAL SUMMARY\n(Unaudited)\n\n[tables/table-3 Tesla Q4-2025 Data.html]\n\nOPERATIONAL SUMMARY\n(Unaudited)\n\n[tables/table-4 Tesla 2021-2025 Data.html]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY", + "metadata": { + "length": 1517, + "summary": "The document presents unaudited financial and operational summaries for a company, covering quarterly data from Q4 2024 through Q4 2025 and annual data from 2021 to 2025. Key notes indicate significant accounting changes effective Q1 2025: Adjusted EBITDA and Net income attributable to common stockholders are now presented net of digital assets gains and losses, with all prior periods adjusted accordingly. Additionally, Capital expenditures now include purchases of energy generation and storage systems, requiring restatement of previous periods. The content references multiple tables detailing these metrics but does not display the specific numerical values.", + "page_nums": [ + 8, + 11 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "FINANCIAL", + "SUMMARY", + "Unaudited", + "As", + "result", + "adoption", + "crypto", + "assets", + "standard", + "previously", + "reported", + "quarterly", + "periods", + "2024", + "recast", + "Beginning", + "Q1", + "25", + "Adjusted", + "EBITDA", + "GAAP", + "presented", + "net", + "digital", + "gains", + "losses", + "prior", + "adjusted", + "Net", + "income", + "attributable", + "common", + "stockholders", + "Capital", + "expenditures", + "inclusive", + "purchases", + "energy", + "generation", + "storage", + "systems", + "OPERATIONAL" + ], + "keywords": [ + "financials", + "crypto assets", + "adjusted metrics" + ], + "connect_to": [ + { + "target": "481804a6-0fb5-52fc-bc47-ef5728621f6b", + "relation": "embeds", + "ref": "[tables/table-1 Q4 2025 Financials.html]", + "position": { + "start": 31, + "end": 71 + } + }, + { + "target": "31077385-2188-5cc5-bbfb-85e07e94c5c8", + "relation": "embeds", + "ref": "[tables/table-2 Financial Data 2021-25.html]", + "position": { + "start": 724, + "end": 768 + } + }, + { + "target": "8ef4ea32-6ed5-5aec-a413-6af0d752355b", + "relation": "embeds", + "ref": "[tables/table-3 Tesla Q4-2025 Data.html]", + "position": { + "start": 1288, + "end": 1328 + } + }, + { + "target": "4c82227e-3ba3-5bb2-9d00-4397c1dc38f6", + "relation": "embeds", + "ref": "[tables/table-4 Tesla 2021-2025 Data.html]", + "position": { + "start": 1363, + "end": 1405 + } + } + ] + } + }, + { + "chunk_id": "60339310-5480-5ae2-8791-e6017bafb730", + "type": "text", + "content": "While automotive sales declined sequentially, gross margin (even when excluding the impact of regulatory credits) improved. The APAC region continued to show strength across multiple markets and set a record for deliveries in the quarter. We continued the rollout of Model Y variants across markets in Q4, including the standard and performance versions.\nPreparations continue in North America for the production ramps of Tesla Semi and Cybercab, both commencing 1H26, and production of the next-generation Roadster.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Automotive", + "metadata": { + "length": 516, + "summary": "", + "page_nums": [ + 8 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "While", + "automotive", + "sales", + "declined", + "sequentially", + "gross", + "margin", + "excluding", + "impact", + "regulatory", + "credits", + "improved", + "The", + "APAC", + "region", + "continued", + "show", + "strength", + "multiple", + "markets", + "set", + "record", + "deliveries", + "quarter", + "We", + "rollout", + "Model", + "variants", + "Q4", + "including", + "standard", + "performance", + "versions", + "Preparations", + "continue", + "North", + "America", + "production", + "ramps", + "Tesla", + "Semi", + "Cybercab", + "commencing", + "1H26", + "generation", + "Roadster" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "eb18e33e-b093-532e-b4df-bd05d63b0294", + "type": "text", + "content": "We achieved our highest quarterly energy storage deployments, driven by record Megapack deployments. Total gross profit rose, both sequentially and year-over-year, to a record \\$1.1 billion, marking the fifth consecutive record quarter. We plan to begin Megapack 3 and Megablock production at Megafactory Houston in 2026. In 2025, our global Powerwall network supported more than 89,000 Virtual Power Plant events across over 1 million installed units, allowing homeowners to save over \\$1 billion in electricity bills as Virtual Power Plant participation continues to scale rapidly.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Energy generation and storage", + "metadata": { + "length": 583, + "summary": "", + "page_nums": [ + 8 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "achieved", + "highest", + "quarterly", + "energy", + "storage", + "deployments", + "driven", + "record", + "Megapack", + "Total", + "gross", + "profit", + "rose", + "sequentially", + "year", + "1.1", + "billion", + "marking", + "consecutive", + "quarter", + "plan", + "begin", + "Megablock", + "production", + "Megafactory", + "Houston", + "2026", + "In", + "2025", + "global", + "Powerwall", + "network", + "supported", + "89", + "000", + "Virtual", + "Power", + "Plant", + "events", + "million", + "installed", + "units", + "allowing", + "homeowners", + "save", + "electricity", + "bills", + "participation", + "continues", + "scale", + "rapidly" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "cdae270e-2dc4-5edc-9876-26a9454fbfff", + "type": "table", + "content": "
RegionProductCapacityStatus
Automotive
CaliforniaModel 3 / Model Y>550,000Production
Model S / Model X100,000Production
ShanghaiModel 3 / Model Y>950,000Production
BerlinModel Y>375,000Production
TexasModel Y>250,000Production
Cybertruck>125,000Production
Cybercab-Tooling
NevadaTesla Semi-Tooling
TBDRoadster-Design development
Energy Generation and Storage
CaliforniaMegapack40 GWhProduction
NevadaPowerwall>6 GWhProduction
ShanghaiMegapack40 GWhProduction
TexasMegapack-Construction
Robotics
CaliforniaOptimus-Construction
", + "path": "tables/table-5 Tesla Production.html", + "metadata": { + "length": 1306, + "summary": "table-6\nTesla operates global facilities in California, Shanghai, Berlin, Texas, and Nevada for Model 3/Y, S/X, Cybertruck, Semi, Megapack, Powerwall, and Optimus.", + "page_nums": [ + 8 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-5 Tesla Production.html", + "keywords": [ + "Tesla", + "Manufacturing", + "Capacity" + ], + "tokens": [] + } + }, + { + "chunk_id": "60518074-bcbe-5b48-89a9-dfeb5d1b531b", + "type": "text", + "content": "We made further progress on the Optimus program in 2025. In Q1 of this year, we plan to unveil the Gen 3 version of Optimus, which will include major upgrades from version 2.5, including our latest hand design. The Gen 3 is our first design meant for mass production. Preparations are underway for the first production line, including supply chain readiness, with start of production planned before the end of 2026 and eventual planned capacity of 1 million robots per year.\nInstalled Annual Manufacturing Capacity\n\n[tables/table-5 Tesla Production.html]\n\nInstalled capacity ≠ current production rate and there may be limitations discovered as production rates approach capacity. Production rates depend on a variety of factors, including equipment uptime, component supply, downtime related to factory upgrades, regulatory considerations and other factors. Construction includes factory and infrastructure buildout as well as tool installation.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Robotics", + "metadata": { + "length": 959, + "summary": "", + "page_nums": [ + 8, + 9 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "made", + "progress", + "Optimus", + "program", + "2025", + "In", + "Q1", + "year", + "plan", + "unveil", + "Gen", + "version", + "include", + "major", + "upgrades", + "2.5", + "including", + "latest", + "hand", + "design", + "The", + "meant", + "mass", + "production", + "Preparations", + "underway", + "line", + "supply", + "chain", + "readiness", + "start", + "planned", + "end", + "2026", + "eventual", + "capacity", + "million", + "robots", + "Installed", + "Annual", + "Manufacturing", + "Capacity", + "current", + "rate", + "limitations", + "discovered", + "rates", + "approach", + "Production", + "depend", + "variety", + "factors", + "equipment", + "uptime", + "component", + "downtime", + "related", + "factory", + "regulatory", + "considerations", + "Construction", + "includes", + "infrastructure", + "buildout", + "tool", + "installation" + ], + "keywords": [], + "connect_to": [ + { + "target": "cdae270e-2dc4-5edc-9876-26a9454fbfff", + "relation": "embeds", + "ref": "[tables/table-5 Tesla Production.html]", + "position": { + "start": 516, + "end": 554 + } + } + ] + } + }, + { + "chunk_id": "c49883a3-5834-5537-be53-35e58da70bf7", + "type": "text", + "content": "We are currently building Cortex 2 at Gigafactory Texas to further increase our AI training compute capacity. In the first half of 2026, we plan to more than double the size of onsite compute in Texas (in terms of H100 equivalents). We aim to maximize capital efficiency by scaling training compute judiciously, including when the training backlog gets too long or in anticipation of greater demand from our engineers to support our AI-related offerings.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->AI Training Compute", + "metadata": { + "length": 454, + "summary": "", + "page_nums": [ + 9 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "building", + "Cortex", + "Gigafactory", + "Texas", + "increase", + "AI", + "training", + "compute", + "capacity", + "In", + "half", + "2026", + "plan", + "double", + "size", + "onsite", + "terms", + "H100", + "equivalents", + "aim", + "maximize", + "capital", + "efficiency", + "scaling", + "judiciously", + "including", + "backlog", + "long", + "anticipation", + "greater", + "demand", + "engineers", + "support", + "related", + "offerings" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "fcbc3b02-dec6-5e91-849e-fccd3f22320e", + "type": "text", + "content": "Our lithium refinery commenced pilot production and is the first spodumene to lithium hydroxide refinery in North America, leveraging a simpler, cheaper and more environmentally friendly process. This refinery enables us to domestically produce critical minerals in support of energy storage, battery manufacturing and ultimately for EV growth.\nWe have begun to produce battery packs for certain Model Ys with our 4680 cells, unlocking an additional vector of supply to help navigate increasingly complex supply chain challenges caused by trade barriers and tariff risks. We now produce dry-electrode for 4680 cells with both anode and cathode made in Austin. We expect both domestic cathode material in Texas and LFP lines in Nevada to begin production in 2026.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Battery", + "metadata": { + "length": 762, + "summary": "", + "page_nums": [ + 9 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Our", + "lithium", + "refinery", + "commenced", + "pilot", + "production", + "spodumene", + "hydroxide", + "North", + "America", + "leveraging", + "simpler", + "cheaper", + "environmentally", + "friendly", + "process", + "This", + "enables", + "domestically", + "produce", + "critical", + "minerals", + "support", + "energy", + "storage", + "battery", + "manufacturing", + "ultimately", + "EV", + "growth", + "We", + "begun", + "packs", + "Model", + "Ys", + "4680", + "cells", + "unlocking", + "additional", + "vector", + "supply", + "navigate", + "increasingly", + "complex", + "chain", + "challenges", + "caused", + "trade", + "barriers", + "tariff", + "risks", + "dry", + "electrode", + "anode", + "cathode", + "made", + "Austin", + "expect", + "domestic", + "material", + "Texas", + "LFP", + "lines", + "Nevada", + "begin", + "2026" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "0428af2c-bf5d-54a6-a142-09ec146d027e", + "type": "table", + "content": "
RegionProductCapacityStatus
AI Training Compute
TexasCortex 1>100k H100eProduction
Cortex 2-Construction
Battery Manufacturing
NevadaLFP7 GWhEarly Ramp
Texas468040 GWhProduction
Cathode Materials10 GWhEarly Ramp
Lithium Refining30 GWhEarly Ramp
", + "path": "tables/table-6 Facility Status.html", + "metadata": { + "length": 629, + "summary": "table-7\nTable lists AI training and battery manufacturing facilities. Texas hosts Cortex 1 (production) and Cortex 2 (construction). Nevada and Texas have LFP, 4680, cathode materials, and lithium refining plants in various stages.", + "page_nums": [ + 9 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-6 Facility Status.html", + "keywords": [ + "AI Training", + "Battery Mfg", + "Capacity" + ], + "tokens": [] + } + }, + { + "chunk_id": "92dc6e40-720d-55b8-a2e2-c78bd4f59dba", + "type": "image", + "content": "\n## Other Supporting Infrastructure Tesla AI Training Capacity Ramp (H100 equivalent GPUs)0\n[images/image-1-Capacity Growth Projection.jpg]\n", + "path": "images/image-1-Capacity Growth Projection.jpg", + "metadata": { + "length": 124, + "summary": "image-1\nThe chart illustrates a steady increase in existing capacity from mid-2021 through late 2025, characterized by gradual step-wise growth. A significant surge is projected for the future planned capacity starting in early 2026, reaching levels well above the current trajectory.", + "page_nums": [ + 9 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-1-Capacity Growth Projection.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "34777c71-d716-5c39-b18a-bec0d0b64706", + "type": "text", + "content": "We continue to efficiently utilize our existing physical footprint in North America, with targeted augmentation to support the rollout of Robotaxi. While in the short-term, operational workstreams such as charging, cleaning and maintenance can be managed through our existing charging network, service centers and sales and delivery locations, we will have to add more capacity as the service expands. We added over 3,800 net new Supercharging stalls, growing the network 19% year-over-year.\nInstalled Annual Capacity\n\n[tables/table-6 Facility Status.html]\n\nInstalled capacity ≠ current production rate and there may be limitations discovered as production rates approach capacity. Production rates depend on a variety of factors, including equipment uptime, component supply, downtime related to factory upgrades, regulatory considerations and other factors. Construction includes factory and infrastructure buildout as well as tool installation.\n\n## Other Supporting Infrastructure Tesla AI Training Capacity Ramp (H100 equivalent GPUs)0\n[images/image-1-Capacity Growth Projection.jpg]\n\nTesla AI Training Capacity Ramp (H100 equivalent GPUs)", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Other Supporting Infrastructure", + "metadata": { + "length": 1142, + "summary": "", + "page_nums": [ + 9, + 10 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "continue", + "efficiently", + "utilize", + "existing", + "physical", + "footprint", + "North", + "America", + "targeted", + "augmentation", + "support", + "rollout", + "Robotaxi", + "While", + "short", + "term", + "operational", + "workstreams", + "charging", + "cleaning", + "maintenance", + "managed", + "network", + "service", + "centers", + "sales", + "delivery", + "locations", + "add", + "capacity", + "expands", + "added", + "800", + "net", + "Supercharging", + "stalls", + "growing", + "19%", + "year", + "Installed", + "Annual", + "Capacity", + "current", + "production", + "rate", + "limitations", + "discovered", + "rates", + "approach", + "Production", + "depend", + "variety", + "factors", + "including", + "equipment", + "uptime", + "component", + "supply", + "downtime", + "related", + "factory", + "upgrades", + "regulatory", + "considerations", + "Construction", + "includes", + "infrastructure", + "buildout", + "tool", + "installation", + "Other", + "Supporting", + "Infrastructure", + "Tesla", + "AI", + "Training", + "Ramp", + "H100", + "equivalent", + "GPUs" + ], + "keywords": [], + "connect_to": [ + { + "target": "0428af2c-bf5d-54a6-a142-09ec146d027e", + "relation": "embeds", + "ref": "[tables/table-6 Facility Status.html]", + "position": { + "start": 519, + "end": 556 + } + }, + { + "target": "92dc6e40-720d-55b8-a2e2-c78bd4f59dba", + "relation": "embeds", + "ref": "[images/image-1-Capacity Growth Projection.jpg]", + "position": { + "start": 1040, + "end": 1087 + } + } + ] + } + }, + { + "chunk_id": "778a63c2-7955-514c-84d0-9c2cfd99a489", + "type": "text", + "content": "We continue to enhance FSD (Supervised) $^{1}$ via our end-to-end foundation model trained on both customer and Robotaxi real-world data with our latest version, v14. FSD (Supervised) $^{1}$ increasingly provides safety and convenience functionality that can relieve drivers of many tedious and potentially dangerous aspects of road travel, including giving access to personal transport for those who otherwise have difficulty driving. V14 offers unparalleled driver assistance to safely drive to the customer's destination, find a free parking spot and park at that location. Our global fleet can collect the equivalent of over 500 years of continuous driving data per day $^{2}$ , allowing us to safely deploy and scale capabilities that can handle the long and fat tail of corner cases across diverse geographies and driving environments.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->AI Software", + "metadata": { + "length": 841, + "summary": "", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "continue", + "enhance", + "FSD", + "Supervised", + "end", + "foundation", + "model", + "trained", + "customer", + "Robotaxi", + "real", + "world", + "data", + "latest", + "version", + "v14", + "increasingly", + "safety", + "convenience", + "functionality", + "relieve", + "drivers", + "tedious", + "potentially", + "dangerous", + "aspects", + "road", + "travel", + "including", + "giving", + "access", + "personal", + "transport", + "difficulty", + "driving", + "V14", + "offers", + "unparalleled", + "driver", + "assistance", + "safely", + "drive", + "destination", + "find", + "free", + "parking", + "spot", + "park", + "location", + "Our", + "global", + "fleet", + "collect", + "equivalent", + "500", + "years", + "continuous", + "day", + "allowing", + "deploy", + "scale", + "capabilities", + "handle", + "long", + "fat", + "tail", + "corner", + "cases", + "diverse", + "geographies", + "environments" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "164babde-7a64-5b81-9a5a-41443b221c40", + "type": "text", + "content": "Development of our in-house, custom designed AI5 and AI6 inference chips for autonomy progressed during the quarter, with production planned for 2027 and 2028, respectively. We are targeting a 50x improvement in performance for AI5 relative to AI4 thanks to 10x raw compute, 9x memory capacity and 5x hardened block quantization and softmax function (the latter enabling efficient low-precision computing without sacrificing model accuracy).", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->AI Inference Compute", + "metadata": { + "length": 441, + "summary": "", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Development", + "house", + "custom", + "designed", + "AI5", + "AI6", + "inference", + "chips", + "autonomy", + "progressed", + "quarter", + "production", + "planned", + "2027", + "2028", + "We", + "targeting", + "50x", + "improvement", + "performance", + "relative", + "AI4", + "10x", + "raw", + "compute", + "9x", + "memory", + "capacity", + "5x", + "hardened", + "block", + "quantization", + "softmax", + "function", + "enabling", + "efficient", + "low", + "precision", + "computing", + "sacrificing", + "model", + "accuracy" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "e4a241cf-298e-51c1-a928-4c6d21840920", + "type": "image", + "content": "\nWe continue to enhance FSD (Supervised) $^{1}$ via our end-to-end foundation model trained on both customer and Robotaxi real-world data with our latest version, v14. FSD (Supervised) $^{1}$ increasingly provides safety and convenience functionality that can relieve drivers of many tedious and potentially dangerous aspects of road travel, including giving access to personal transport for those who otherwise have difficulty driving. V14 offers unparalleled driver assistance to safely drive to the customer's destination, find a free parking spot and park at that location. Our global fleet can collect the equivalent of over 500 years of continuous driving data per day $^{2}$ , allowing us to safely deploy and scale capabilities that can handle the long and fat tail of corner cases across diverse geographies and driving environments. Cumulative Miles Driven with FSD (Supervised) $^{1}$ (billions)0\n[images/image-2-FSD Mileage Growth.jpg]\n", + "path": "images/image-2-FSD Mileage Growth.jpg", + "metadata": { + "length": 940, + "summary": "image-2\nThe chart illustrates the projected accumulation of miles driven on Full Self-Driving software over time. It distinguishes between two versions: an older version (V11 and before) represented by a blue area, and a newer version (V12 and beyond) shown in red. While mileage for the older version remains relatively flat, the newer version shows exponential growth starting around early 2024, eventually dominating the total distance traveled by late 2025.", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-2-FSD Mileage Growth.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "1bbb4be7-849a-557b-86de-9d71a3e33ef0", + "type": "image", + "content": "\nDevelopment of our in-house, custom designed AI5 and AI6 inference chips for autonomy progressed during the quarter, with production planned for 2027 and 2028, respectively. We are targeting a 50x improvement in performance for AI5 relative to AI4 thanks to 10x raw compute, 9x memory capacity and 5x hardened block quantization and softmax function (the latter enabling efficient low-precision computing without sacrificing model accuracy). Targeting Step-Function Improvement for our Next-Generation Inference Chip, AI50\n[images/image-3-Tesla Silicon Optimization.jpg]\n", + "path": "images/image-3-Tesla Silicon Optimization.jpg", + "metadata": { + "length": 556, + "summary": "image-3\nThe image displays a high-performance computing chip alongside key performance metrics. It highlights significant improvements in hardened block quantization, memory capacity, and raw compute power compared to previous generations. The overall total improvement is presented as a substantial increase over the AI4 architecture.", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-3-Tesla Silicon Optimization.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "32bfae6f-b2d4-51d3-94d9-82b9640828dd", + "type": "text", + "content": "The Robotaxi iOS app no longer has a waitlist in the areas we serve. Our vehicles keep getting better with our over-the-air updates, including: Grok (an AI companion) which now supports navigation commands (allowing users to find, add and edit navigation destinations hands-free); Tesla Photobooth which enables users to take photos in their car and download or share via the Tesla mobile app; Supercharger Site Maps which displays Supercharger layouts, nearby businesses and live availability details; Automatic HOV Lane Routing based on interior camera occupancy detection; Phone Left Behind Chime and SpaceX ISS Docking Simulator Game.\n\nWe continue to enhance FSD (Supervised) $^{1}$ via our end-to-end foundation model trained on both customer and Robotaxi real-world data with our latest version, v14. FSD (Supervised) $^{1}$ increasingly provides safety and convenience functionality that can relieve drivers of many tedious and potentially dangerous aspects of road travel, including giving access to personal transport for those who otherwise have difficulty driving. V14 offers unparalleled driver assistance to safely drive to the customer's destination, find a free parking spot and park at that location. Our global fleet can collect the equivalent of over 500 years of continuous driving data per day $^{2}$ , allowing us to safely deploy and scale capabilities that can handle the long and fat tail of corner cases across diverse geographies and driving environments. Cumulative Miles Driven with FSD (Supervised) $^{1}$ (billions)0\n[images/image-2-FSD Mileage Growth.jpg]\n\nCumulative Miles Driven with FSD (Supervised) $^{1}$ (billions)\n\nDevelopment of our in-house, custom designed AI5 and AI6 inference chips for autonomy progressed during the quarter, with production planned for 2027 and 2028, respectively. We are targeting a 50x improvement in performance for AI5 relative to AI4 thanks to 10x raw compute, 9x memory capacity and 5x hardened block quantization and softmax function (the latter enabling efficient low-precision computing without sacrificing model accuracy). Targeting Step-Function Improvement for our Next-Generation Inference Chip, AI50\n[images/image-3-Tesla Silicon Optimization.jpg]\n\nTargeting Step-Function Improvement for our Next-Generation Inference Chip, AI5\n(1) Active driver supervision required; does not make the vehicle autonomous\n(2) Calculated based on continuous hours of driving at an average of 30 miles per hour", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Automotive and Other Software", + "metadata": { + "length": 2444, + "summary": "The Robotaxi iOS app has removed its waitlist in served areas and now includes features like Grok navigation, Tesla Photobooth, Supercharger maps, automatic HOV routing, phone left-behind chimes, and a SpaceX game. FSD (Supervised) v14 uses an end-to-end foundation model trained on vast real-world data to assist drivers with navigation, parking, and safety, though active supervision remains required. The company is developing custom AI5 and AI6 inference chips for 2027 and 2028, targeting significant performance improvements over previous generations to handle complex driving scenarios globally.", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "The", + "Robotaxi", + "iOS", + "app", + "longer", + "waitlist", + "areas", + "serve", + "Our", + "vehicles", + "air", + "updates", + "including", + "Grok", + "AI", + "companion", + "supports", + "navigation", + "commands", + "allowing", + "users", + "find", + "add", + "edit", + "destinations", + "hands", + "free", + "Tesla", + "Photobooth", + "enables", + "photos", + "car", + "download", + "share", + "mobile", + "Supercharger", + "Site", + "Maps", + "displays", + "layouts", + "nearby", + "businesses", + "live", + "availability", + "details", + "Automatic", + "HOV", + "Lane", + "Routing", + "based", + "interior", + "camera", + "occupancy", + "detection", + "Phone", + "Left", + "Behind", + "Chime", + "SpaceX", + "ISS", + "Docking", + "Simulator", + "Game", + "We", + "continue", + "enhance", + "FSD", + "Supervised", + "end", + "foundation", + "model", + "trained", + "customer", + "real", + "world", + "data", + "latest", + "version", + "v14", + "increasingly", + "safety", + "convenience", + "functionality", + "relieve", + "drivers", + "tedious", + "potentially", + "dangerous", + "aspects", + "road", + "travel", + "giving", + "access", + "personal", + "transport", + "difficulty", + "driving", + "V14", + "offers", + "unparalleled", + "driver", + "assistance", + "safely", + "drive", + "destination", + "parking", + "spot", + "park", + "location", + "global", + "fleet", + "collect", + "equivalent", + "500", + "years", + "continuous", + "day", + "deploy", + "scale", + "capabilities", + "handle", + "long", + "fat", + "tail", + "corner", + "cases", + "diverse", + "geographies", + "environments", + "Cumulative", + "Miles", + "Driven", + "billions", + "Development", + "house", + "custom", + "designed", + "AI5", + "AI6", + "inference", + "chips", + "autonomy", + "progressed", + "quarter", + "production", + "planned", + "2027", + "2028", + "targeting", + "50x", + "improvement", + "performance", + "relative", + "AI4", + "10x", + "raw", + "compute", + "9x", + "memory", + "capacity", + "5x", + "hardened", + "block", + "quantization", + "softmax", + "function", + "enabling", + "efficient", + "low", + "precision", + "computing", + "sacrificing", + "accuracy", + "Targeting", + "Step", + "Function", + "Improvement", + "Next", + "Generation", + "Inference", + "Chip", + "AI50", + "Active", + "supervision", + "required", + "make", + "vehicle", + "autonomous", + "Calculated", + "hours", + "average", + "30", + "miles", + "hour" + ], + "keywords": [ + "Robotaxi", + "FSD", + "AI Chips" + ], + "connect_to": [ + { + "target": "e4a241cf-298e-51c1-a928-4c6d21840920", + "relation": "embeds", + "ref": "[images/image-2-FSD Mileage Growth.jpg]", + "position": { + "start": 1547, + "end": 1586 + } + }, + { + "target": "1bbb4be7-849a-557b-86de-9d71a3e33ef0", + "relation": "embeds", + "ref": "[images/image-3-Tesla Silicon Optimization.jpg]", + "position": { + "start": 2176, + "end": 2223 + } + } + ] + } + }, + { + "chunk_id": "41533301-58f0-554f-916d-8254cc2700df", + "type": "text", + "content": "We began testing driverless Robotaxis in Austin in December and began removing the safety monitor from customer rides in January on a limited basis, which will unlock further expansion of our Robotaxi fleet and coverage area in the Austin-metro. Our Bay Area ride-hailing service began serving the San Jose Airport in October, with plans to expand to other major airports in the Bay Area upon receiving required permitting.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Robotaxi", + "metadata": { + "length": 423, + "summary": "", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "began", + "testing", + "driverless", + "Robotaxis", + "Austin", + "December", + "removing", + "safety", + "monitor", + "customer", + "rides", + "January", + "limited", + "basis", + "unlock", + "expansion", + "Robotaxi", + "fleet", + "coverage", + "area", + "metro", + "Our", + "Bay", + "Area", + "ride", + "hailing", + "service", + "serving", + "San", + "Jose", + "Airport", + "October", + "plans", + "expand", + "major", + "airports", + "receiving", + "required", + "permitting" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "3968a25f-933e-5a7f-a118-07db2e581153", + "type": "text", + "content": "We launched FSD (Supervised) $^{1}$ in South Korea, where customers drove over 1 million kilometers using the software in just one month. While we continue to pursue regulatory approval in China and Europe, we began offering ride-along experiences to consumers in Italy, Germany, France and Switzerland.\nMonthly subscriptions to FSD (Supervised) $^{1}$ continued to grow sequentially and more than doubled in 2025. Starting this quarter, we are transitioning access to FSD (Supervised) $^{1}$ to monthly subscriptions only as we begin to sunset the up-front payment option.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->FSD (Supervised) $^{1}$", + "metadata": { + "length": 573, + "summary": "", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "launched", + "FSD", + "Supervised", + "South", + "Korea", + "customers", + "drove", + "million", + "kilometers", + "software", + "month", + "While", + "continue", + "pursue", + "regulatory", + "approval", + "China", + "Europe", + "began", + "offering", + "ride", + "experiences", + "consumers", + "Italy", + "Germany", + "France", + "Switzerland", + "Monthly", + "subscriptions", + "continued", + "grow", + "sequentially", + "doubled", + "2025", + "Starting", + "quarter", + "transitioning", + "access", + "monthly", + "begin", + "sunset", + "front", + "payment", + "option" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "76c2f1a2-0b45-52a1-9708-e230345c7fae", + "type": "image", + "content": "\n## FSD (Supervised) $^{1}$ Cumulative Paid Robotaxi Miles0\n[images/image-4-Growth Trend 2025.jpg]\n", + "path": "images/image-4-Growth Trend 2025.jpg", + "metadata": { + "length": 92, + "summary": "image-4\nThe chart illustrates a steady increase in values over time, starting from June 2025 and extending through December 2025. The data shows minimal growth initially, followed by a significant upward trajectory beginning around August, reaching its peak at the end of the year.", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-4-Growth Trend 2025.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "d4b47369-e206-5d49-afdd-db918ddee012", + "type": "table", + "content": "
StateMetroStatus
CaliforniaSF Bay AreaSafety Driver
TexasAustinRamping Unsupervised
Dallas1H 2026
Houston1H 2026
ArizonaPhoenix1H 2026
FloridaMiami1H 2026
Orlando1H 2026
Tampa1H 2026
NevadaLas Vegas1H 2026
", + "path": "tables/table-7 Autonomous Driving Status.html", + "metadata": { + "length": 571, + "summary": "table-8\nTable lists US states and metro areas with autonomous driving status. California SF Bay Area has safety drivers. Texas Austin is ramping unsupervised. Other locations like Dallas, Houston, Phoenix, Miami, Orlando, Tampa, and Las Vegas are scheduled for 1H 2026.", + "page_nums": [ + 10 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-7 Autonomous Driving Status.html", + "keywords": [ + "safety driver", + "ramping", + "2026 plans" + ], + "tokens": [] + } + }, + { + "chunk_id": "adf89909-d366-51e1-b68c-459f9024191c", + "type": "text", + "content": "Services and Other gross profit of approximately \\$300 million was partly driven by Part Sales and Supercharging. We now offer Tesla Insurance in Florida, as we continue to expand our insurance product to new states. In certain states, customers receive a discount on their insurance premiums when using FSD (Supervised) $^{1}$ . The more you drive with FSD (Supervised) $^{1}$ enabled, the bigger the discount is on your insurance premium – helping, in certain cases, to completely offset the monthly subscription cost for FSD (Supervised) $^{1}$ .\n\n## FSD (Supervised) $^{1}$ Cumulative Paid Robotaxi Miles0\n[images/image-4-Growth Trend 2025.jpg]\n\nCumulative Paid Robotaxi Miles\n\n[tables/table-7 Autonomous Driving Status.html]\n\nPlanned Robotaxi Coverage", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->Automotive Services", + "metadata": { + "length": 742, + "summary": "", + "page_nums": [ + 10, + 12 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Services", + "Other", + "gross", + "profit", + "approximately", + "300", + "million", + "partly", + "driven", + "Part", + "Sales", + "Supercharging", + "We", + "offer", + "Tesla", + "Insurance", + "Florida", + "continue", + "expand", + "insurance", + "product", + "states", + "In", + "customers", + "receive", + "discount", + "premiums", + "FSD", + "Supervised", + "The", + "drive", + "enabled", + "bigger", + "premium", + "helping", + "cases", + "completely", + "offset", + "monthly", + "subscription", + "cost", + "Cumulative", + "Paid", + "Robotaxi", + "Miles0", + "Miles", + "Planned", + "Coverage" + ], + "keywords": [], + "connect_to": [ + { + "target": "76c2f1a2-0b45-52a1-9708-e230345c7fae", + "relation": "embeds", + "ref": "[images/image-4-Growth Trend 2025.jpg]", + "position": { + "start": 610, + "end": 648 + } + }, + { + "target": "d4b47369-e206-5d49-afdd-db918ddee012", + "relation": "embeds", + "ref": "[tables/table-7 Autonomous Driving Status.html]", + "position": { + "start": 682, + "end": 729 + } + } + ] + } + }, + { + "chunk_id": "cf91377e-176a-5768-855a-b859092f4695", + "type": "text", + "content": "On January 16, 2026, Tesla entered into an agreement to invest approximately \\$2 billion to acquire shares of Series E Preferred Stock of xAI as part of their recent publicly-disclosed financing round. Tesla’s investment was made on market terms consistent with those previously agreed to by other investors in the financing round. As set forth in Master Plan Part IV, Tesla is building products and services that bring AI into the physical world. Meanwhile, xAI is developing leading digital AI products and services, such as its large language model (Grok).\nIn that context, and as part of Tesla's broader strategy under Master Plan Part IV, Tesla and xAI also entered into a framework agreement in connection with the investment. Among other things, the framework agreement builds upon the existing relationship between Tesla and xAI by providing a framework for evaluating potential AI collaborations between the companies. Together, the investment and the related framework agreement are intended to enhance Tesla's ability to develop and deploy AI products and services into the physical world at scale. This investment is subject to customary regulatory conditions with the expectation to close in Q1'2026.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OTHER UPDATES", + "metadata": { + "length": 1213, + "summary": "", + "page_nums": [ + 12, + 13 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "On", + "January", + "16", + "2026", + "Tesla", + "entered", + "agreement", + "invest", + "approximately", + "billion", + "acquire", + "shares", + "Series", + "Preferred", + "Stock", + "xAI", + "part", + "recent", + "publicly", + "disclosed", + "financing", + "round", + "investment", + "made", + "market", + "terms", + "consistent", + "previously", + "agreed", + "investors", + "As", + "set", + "Master", + "Plan", + "Part", + "IV", + "building", + "products", + "services", + "bring", + "AI", + "physical", + "world", + "Meanwhile", + "developing", + "leading", + "digital", + "large", + "language", + "model", + "Grok", + "In", + "context", + "broader", + "strategy", + "framework", + "connection", + "Among", + "things", + "builds", + "existing", + "relationship", + "providing", + "evaluating", + "potential", + "collaborations", + "companies", + "Together", + "related", + "intended", + "enhance", + "ability", + "develop", + "deploy", + "scale", + "This", + "subject", + "customary", + "regulatory", + "conditions", + "expectation", + "close", + "Q1" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "79b23d73-b353-5998-a646-93d6739ec465", + "type": "text", + "content": "", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK", + "metadata": { + "length": 0, + "summary": "", + "page_nums": [ + 13 + ], + "document_top_summary": "This document includes:", + "tokens": [], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "8d4c49a6-c531-5fa6-a77d-ad028537fa52", + "type": "text", + "content": "We are focused on maximum capacity utilization at our factories. Deliveries and deployments will be impacted by aggregate demand for our products, supply chain readiness and allocation decisions between sale to customers or use for our owned and operated fleet.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Volume", + "metadata": { + "length": 261, + "summary": "", + "page_nums": [ + 13 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "focused", + "maximum", + "capacity", + "utilization", + "factories", + "Deliveries", + "deployments", + "impacted", + "aggregate", + "demand", + "products", + "supply", + "chain", + "readiness", + "allocation", + "decisions", + "sale", + "customers", + "owned", + "operated", + "fleet" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "426e5119-3ef6-5176-9119-fc044eb90be7", + "type": "text", + "content": "We will manage the businesses such that we ensure a strong balance sheet, maintaining sufficient liquidity to fund our product roadmap, long-term capacity expansion plans – including further vertical integration – and other expenses.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Cash", + "metadata": { + "length": 233, + "summary": "", + "page_nums": [ + 13 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "manage", + "businesses", + "ensure", + "strong", + "balance", + "sheet", + "maintaining", + "sufficient", + "liquidity", + "fund", + "product", + "roadmap", + "long", + "term", + "capacity", + "expansion", + "plans", + "including", + "vertical", + "integration", + "expenses" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "99f54247-8409-5df2-8299-39184863cd09", + "type": "text", + "content": "While we continue to execute on innovations to reduce the cost of manufacturing and operations, over time, we expect our hardware-related profits to be accompanied by an acceleration of AI, software and fleet-based profits.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Profit", + "metadata": { + "length": 223, + "summary": "", + "page_nums": [ + 13 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "While", + "continue", + "execute", + "innovations", + "reduce", + "cost", + "manufacturing", + "operations", + "time", + "expect", + "hardware", + "related", + "profits", + "accompanied", + "acceleration", + "AI", + "software", + "fleet", + "based" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "29e89187-3dbe-5298-87c3-c38d3cbe6883", + "type": "text", + "content": "We continue to evolve and augment our product lineup with a focus on cost, scale and future monetization opportunities via services powered by our AI software. We remain focused on growing our sales volumes through a differentiated and efficiently managed product portfolio, which includes leveraging and optimizing our existing production capacity before building new factories and production lines.\nCybercab, Tesla Semi and Megapack 3 are on schedule for volume production starting in 2026. First generation production lines for Optimus are being installed in anticipation of volume production.\nPHOTOS & CHARTS", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product", + "metadata": { + "length": 612, + "summary": "", + "page_nums": [ + 13, + 14, + 15 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "We", + "continue", + "evolve", + "augment", + "product", + "lineup", + "focus", + "cost", + "scale", + "future", + "monetization", + "opportunities", + "services", + "powered", + "AI", + "software", + "remain", + "focused", + "growing", + "sales", + "volumes", + "differentiated", + "efficiently", + "managed", + "portfolio", + "includes", + "leveraging", + "optimizing", + "existing", + "production", + "capacity", + "building", + "factories", + "lines", + "Cybercab", + "Tesla", + "Semi", + "Megapack", + "schedule", + "volume", + "starting", + "2026", + "First", + "generation", + "Optimus", + "installed", + "anticipation", + "PHOTOS", + "CHARTS" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "d119baec-2829-56d3-8406-fc994dfe3adf", + "type": "image", + "content": "\nCybercab, Tesla Semi and Megapack 3 are on schedule for volume production starting in 2026. First generation production lines for Optimus are being installed in anticipation of volume production. 0\n[images/image-5-Tesla Model Y Driving.jpg]\n", + "path": "images/image-5-Tesla Model Y Driving.jpg", + "metadata": { + "length": 247, + "summary": "image-5\nA sleek silver electric SUV travels along a winding highway through a scenic landscape. The vehicle is captured in motion with blurred surroundings, emphasizing speed against a backdrop of rolling hills and distant mountains under a bright sky.", + "page_nums": [ + 15 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-5-Tesla Model Y Driving.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "bbe9d89e-eebd-56b1-b7c0-7eda12dd3377", + "type": "text", + "content": "Cybercab, Tesla Semi and Megapack 3 are on schedule for volume production starting in 2026. First generation production lines for Optimus are being installed in anticipation of volume production. 0\n[images/image-5-Tesla Model Y Driving.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->MODEL Y - 2025 BEST IN CLASS EURO NCAP $^{(1)}$ SMALL SUV", + "metadata": { + "length": 245, + "summary": "", + "page_nums": [ + 15, + 16 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Cybercab", + "Tesla", + "Semi", + "Megapack", + "schedule", + "volume", + "production", + "starting", + "2026", + "First", + "generation", + "lines", + "Optimus", + "installed", + "anticipation", + "page", + "16" + ], + "keywords": [], + "connect_to": [ + { + "target": "d119baec-2829-56d3-8406-fc994dfe3adf", + "relation": "embeds", + "ref": "[images/image-5-Tesla Model Y Driving.jpg]", + "position": { + "start": 214, + "end": 256 + } + } + ] + } + }, + { + "chunk_id": "f62cb7da-1f39-5ea6-a2f4-21ff5f5ff0d1", + "type": "image", + "content": "\n 0\n[images/image-6-Red Tesla on Coastal Road.jpg]\n", + "path": "images/image-6-Red Tesla on Coastal Road.jpg", + "metadata": { + "length": 68, + "summary": "image-6\nA red electric sedan drives along a winding asphalt road carved into a steep, rocky mountainside. The vehicle is captured in motion with a blurred background, emphasizing speed as it navigates the curve. To the right of the road lies a calm body of blue water, while the left side features a rugged cliff face covered in sparse green vegetation under a clear sky.", + "page_nums": [ + 16 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-6-Red Tesla on Coastal Road.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "02f7e756-798f-5675-9dd9-6ce9123f92d4", + "type": "text", + "content": " 0\n[images/image-6-Red Tesla on Coastal Road.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->MODEL 3 - 2025 BEST IN CLASS EURO NCAP $^{(1)}$ LARGE FAMILY CAR", + "metadata": { + "length": 66, + "summary": "", + "page_nums": [ + 16, + 17 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "15", + "17" + ], + "keywords": [], + "connect_to": [ + { + "target": "f62cb7da-1f39-5ea6-a2f4-21ff5f5ff0d1", + "relation": "embeds", + "ref": "[images/image-6-Red Tesla on Coastal Road.jpg]", + "position": { + "start": 35, + "end": 81 + } + } + ] + } + }, + { + "chunk_id": "ca26e264-c569-50b1-bef6-8cee03a027f2", + "type": "image", + "content": "\n 0\n[images/image-7-Tesla Interior Interface.jpg]\n", + "path": "images/image-7-Tesla Interior Interface.jpg", + "metadata": { + "length": 68, + "summary": "image-7\nThe image displays the interior of a Tesla vehicle, focusing on the driver's perspective. A person is interacting with the large central touchscreen display, which shows navigation maps and vehicle controls. The steering wheel features the Tesla logo, and ambient lighting accents are visible along the dashboard. Through the windshield, a modern stone building is seen outside.", + "page_nums": [ + 17 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-7-Tesla Interior Interface.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "494118dd-5788-526b-a139-407d1cfb0d20", + "type": "text", + "content": " 0\n[images/image-7-Tesla Interior Interface.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->FSD (SUPERVISED) $^{1}$ – V14 OFFERS UNPARALLELED DRIVER ASSISTANCE", + "metadata": { + "length": 66, + "summary": "", + "page_nums": [ + 17, + 18 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "16", + "18" + ], + "keywords": [], + "connect_to": [ + { + "target": "ca26e264-c569-50b1-bef6-8cee03a027f2", + "relation": "embeds", + "ref": "[images/image-7-Tesla Interior Interface.jpg]", + "position": { + "start": 35, + "end": 80 + } + } + ] + } + }, + { + "chunk_id": "47fd2c58-a064-544f-ac09-2ddd83eeb248", + "type": "image", + "content": "\n 0\n[images/image-8-Tesla Interior.jpg]\n", + "path": "images/image-8-Tesla Interior.jpg", + "metadata": { + "length": 68, + "summary": "image-8\nThe image displays the driver's perspective inside a Tesla vehicle, featuring a minimalist dashboard with a large central touchscreen. The steering wheel is visible on the left side, and the car appears to be in motion on a city street during daylight hours.", + "page_nums": [ + 18 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-8-Tesla Interior.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "6ac7765a-4da5-573a-963b-f35ab3796f6f", + "type": "text", + "content": " 0\n[images/image-8-Tesla Interior.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->DRIVERLESS ROBOTAXI - TESTING IN AUSTIN", + "metadata": { + "length": 66, + "summary": "", + "page_nums": [ + 18, + 19 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "17", + "19" + ], + "keywords": [], + "connect_to": [ + { + "target": "47fd2c58-a064-544f-ac09-2ddd83eeb248", + "relation": "embeds", + "ref": "[images/image-8-Tesla Interior.jpg]", + "position": { + "start": 35, + "end": 70 + } + } + ] + } + }, + { + "chunk_id": "04fc84c0-3bc5-50c2-a7d8-40b4f22a257e", + "type": "image", + "content": "\n 0\n[images/image-9-Tesla Cybertruck in Snow.jpg]\n", + "path": "images/image-9-Tesla Cybertruck in Snow.jpg", + "metadata": { + "length": 68, + "summary": "image-9\nA futuristic electric pickup truck is shown driving on a frozen, snow-covered surface. The vehicle features its signature angular design and metallic finish, with snow clinging to the rear bumper and wheel wells. It is set against a backdrop of distant mountains under a twilight sky.", + "page_nums": [ + 19 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-9-Tesla Cybertruck in Snow.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "4ebd8699-3d0c-523d-8288-9b7b5b6853aa", + "type": "image", + "content": "\n### DRIVERLESS ROBOTAXI - TESTING IN AUSTIN 0\n[images/image-10-Tesla Semi Trucks.jpg]\n", + "path": "images/image-10-Tesla Semi Trucks.jpg", + "metadata": { + "length": 96, + "summary": "image-10\nTwo white electric semi-trucks are parked side-by-side in an outdoor lot. The vehicles feature a futuristic, aerodynamic design with large windshields and distinctive horizontal headlights. They are positioned against a backdrop of industrial buildings and hills under a cloudy sky.", + "page_nums": [ + 19 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-10-Tesla Semi Trucks.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "bda2b508-b228-5ab9-b619-775c024822fa", + "type": "image", + "content": "\n### CYBERCAB - COLD WEATHER TESTING IN ALASKA 0\n[images/image-11-US Lightning Map.jpg]\n", + "path": "images/image-11-US Lightning Map.jpg", + "metadata": { + "length": 98, + "summary": "image-11\nA map of the United States displays numerous red markers with lightning symbols. These indicators are concentrated heavily along the West Coast, particularly in California, and throughout Texas. Additional clusters appear in the Southeast near Atlanta and scattered locations in the Midwest and Northeast.", + "page_nums": [ + 35 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-11-US Lightning Map.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "4cfe7ce9-5f93-5816-9505-ba562683ee42", + "type": "text", + "content": " 0\n[images/image-9-Tesla Cybertruck in Snow.jpg]\n\n\n### DRIVERLESS ROBOTAXI - TESTING IN AUSTIN 0\n[images/image-10-Tesla Semi Trucks.jpg]\n\nTESLA SEMI - MEGACHARGER NETWORK PLANNED SITES FOR 2026\n\n### CYBERCAB - COLD WEATHER TESTING IN ALASKA 0\n[images/image-11-US Lightning Map.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->CYBERCAB - COLD WEATHER TESTING IN ALASKA", + "metadata": { + "length": 318, + "summary": "", + "page_nums": [ + 19, + 22, + 35 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "18", + "35", + "DRIVERLESS", + "ROBOTAXI", + "TESTING", + "IN", + "AUSTIN", + "TESLA", + "SEMI", + "MEGACHARGER", + "NETWORK", + "PLANNED", + "SITES", + "FOR", + "2026", + "CYBERCAB", + "COLD", + "WEATHER", + "ALASKA", + "22" + ], + "keywords": [], + "connect_to": [ + { + "target": "04fc84c0-3bc5-50c2-a7d8-40b4f22a257e", + "relation": "embeds", + "ref": "[images/image-9-Tesla Cybertruck in Snow.jpg]", + "position": { + "start": 35, + "end": 80 + } + }, + { + "target": "4ebd8699-3d0c-523d-8288-9b7b5b6853aa", + "relation": "embeds", + "ref": "[images/image-10-Tesla Semi Trucks.jpg]", + "position": { + "start": 145, + "end": 184 + } + }, + { + "target": "bda2b508-b228-5ab9-b619-775c024822fa", + "relation": "embeds", + "ref": "[images/image-11-US Lightning Map.jpg]", + "position": { + "start": 307, + "end": 345 + } + } + ] + } + }, + { + "chunk_id": "bf02caea-5069-5866-9a6c-5f0ff28c981b", + "type": "image", + "content": "\n 0\n[images/image-12-Tesla Factory Milestone.jpg]\n", + "path": "images/image-12-Tesla Factory Milestone.jpg", + "metadata": { + "length": 69, + "summary": "image-12\nFactory workers and staff gather for a group photo on an automotive assembly line to celebrate the production of the 900th vehicle. A white car is positioned centrally in front of the crowd, while employees hold silver balloons displaying the number \"900\" to mark this significant manufacturing achievement.", + "page_nums": [ + 22 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-12-Tesla Factory Milestone.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "07535539-a2f9-5b79-ac6b-d41cf785ec88", + "type": "text", + "content": " 0\n[images/image-12-Tesla Factory Milestone.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->GIGAFACTORY SHANGHAI - 9 MILLIONTH VEHICLE PRODUCED (GLOBALLY)", + "metadata": { + "length": 67, + "summary": "", + "page_nums": [ + 22, + 23 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "35", + "23" + ], + "keywords": [], + "connect_to": [ + { + "target": "bf02caea-5069-5866-9a6c-5f0ff28c981b", + "relation": "embeds", + "ref": "[images/image-12-Tesla Factory Milestone.jpg]", + "position": { + "start": 35, + "end": 80 + } + } + ] + } + }, + { + "chunk_id": "a860be78-1920-5ae1-996e-40c19fc83386", + "type": "image", + "content": "\n 0\n[images/image-13-Tesla Factory Milestone.jpg]\n", + "path": "images/image-13-Tesla Factory Milestone.jpg", + "metadata": { + "length": 69, + "summary": "image-13\nA large group of factory workers gathers inside a manufacturing facility to celebrate a significant achievement. Several employees in the front row hold up oversized gold balloons that spell out \"600,000,\" marking a major production milestone for the company. The background reveals an industrial setting filled with machinery and assembly lines.", + "page_nums": [ + 23 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-13-Tesla Factory Milestone.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "b356395d-c199-500b-9879-6c7973de3bba", + "type": "image", + "content": "\n### GIGAFACTORY SHANGHAI - 9 MILLIONTH VEHICLE PRODUCED (GLOBALLY) 0\n[images/image-14-Vehicle Delivery Trends.jpg]\n", + "path": "images/image-14-Vehicle Delivery Trends.jpg", + "metadata": { + "length": 119, + "summary": "image-14\nA bar chart displays quarterly vehicle delivery volumes in millions of units spanning from the first quarter of 2023 through the fourth quarter of 2025. The data illustrates fluctuating delivery figures across the timeline, with values generally ranging between approximately 0.3 and 0.5 million units per quarter.", + "page_nums": [ + 23 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-14-Vehicle Delivery Trends.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "10b8881e-6d2c-5737-8ffa-b75db9f1c850", + "type": "image", + "content": "\n 0\n[images/image-15-Quarterly Cash Flow.jpg]\n", + "path": "images/image-15-Quarterly Cash Flow.jpg", + "metadata": { + "length": 69, + "summary": "image-15\nThe chart compares operating cash flow and free cash flow across multiple quarters from 2023 through 2025. Blue bars represent operating cash flow, while red bars indicate free cash flow. Operating cash flow remains consistently positive throughout the period, whereas free cash flow fluctuates significantly, including a notable negative value in early 2024.", + "page_nums": [ + 23 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-15-Quarterly Cash Flow.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "8126ecb1-7d09-5687-8290-988e8bbe8eec", + "type": "image", + "content": "\n 0\n[images/image-16-Financial Performance Chart.jpg]\n", + "path": "images/image-16-Financial Performance Chart.jpg", + "metadata": { + "length": 69, + "summary": "image-16\nThis bar chart compares Net Income and Adjusted EBITDA across quarterly periods from 2023 through 2025. The blue bars represent Net Income while the red bars indicate Adjusted EBITDA, with values measured in billions of dollars. A significant spike in Net Income is visible during the fourth quarter of 2023, whereas Adjusted EBITDA remains consistently higher than Net Income throughout most of the timeline.", + "page_nums": [ + 23 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-16-Financial Performance Chart.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "702bff82-1736-584d-956e-e7bf7eac4039", + "type": "text", + "content": " 0\n[images/image-13-Tesla Factory Milestone.jpg]\n\n\n### GIGAFACTORY SHANGHAI - 9 MILLIONTH VEHICLE PRODUCED (GLOBALLY) 0\n[images/image-14-Vehicle Delivery Trends.jpg]\n\n\n 0\n[images/image-15-Quarterly Cash Flow.jpg]\n\n\n 0\n[images/image-16-Financial Performance Chart.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->Product-->GIGAFACTORY NEVADA - 6 MILLIONTH DRIVE UNIT PRODUCED", + "metadata": { + "length": 327, + "summary": "", + "page_nums": [ + 23, + 25 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "22", + "25", + "GIGAFACTORY", + "SHANGHAI", + "MILLIONTH", + "VEHICLE", + "PRODUCED", + "GLOBALLY", + "23" + ], + "keywords": [], + "connect_to": [ + { + "target": "a860be78-1920-5ae1-996e-40c19fc83386", + "relation": "embeds", + "ref": "[images/image-13-Tesla Factory Milestone.jpg]", + "position": { + "start": 35, + "end": 80 + } + }, + { + "target": "b356395d-c199-500b-9879-6c7973de3bba", + "relation": "embeds", + "ref": "[images/image-14-Vehicle Delivery Trends.jpg]", + "position": { + "start": 168, + "end": 213 + } + }, + { + "target": "10b8881e-6d2c-5737-8ffa-b75db9f1c850", + "relation": "embeds", + "ref": "[images/image-15-Quarterly Cash Flow.jpg]", + "position": { + "start": 251, + "end": 292 + } + }, + { + "target": "8126ecb1-7d09-5687-8290-988e8bbe8eec", + "relation": "embeds", + "ref": "[images/image-16-Financial Performance Chart.jpg]", + "position": { + "start": 330, + "end": 379 + } + } + ] + } + }, + { + "chunk_id": "2504a912-1296-5922-a39b-5aa2f2634d75", + "type": "image", + "content": "\n 0\n[images/image-17-Projected Vehicle Deliveries.jpg]\n", + "path": "images/image-17-Projected Vehicle Deliveries.jpg", + "metadata": { + "length": 69, + "summary": "image-17\nThe bar chart illustrates a forecast of vehicle deliveries in millions of units spanning from the first quarter of 2023 through the fourth quarter of 2025. The data indicates an upward trend starting in early 2023, reaching a peak around late 2023 and continuing at high levels throughout 2024 before showing a slight decline toward the end of the projection period in 2025.", + "page_nums": [ + 25 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-17-Projected Vehicle Deliveries.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "26481825-241e-53e6-b380-dbfa166ef8cd", + "type": "image", + "content": "\n 0\n[images/image-18-Cash Flow Trends.jpg]\n", + "path": "images/image-18-Cash Flow Trends.jpg", + "metadata": { + "length": 69, + "summary": "image-18\nThe chart compares operating and free cash flow across multiple quarters from 2023 through 2025. Operating cash flow is consistently higher than free cash flow throughout the timeline, with both metrics showing significant fluctuations over time.", + "page_nums": [ + 25 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-18-Cash Flow Trends.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "f19dcb65-d67c-51d4-a0fe-112a38f24d8c", + "type": "image", + "content": "\n 0\n[images/image-19-Financial Performance Forecast.jpg]\n", + "path": "images/image-19-Financial Performance Forecast.jpg", + "metadata": { + "length": 69, + "summary": "image-19\nThe chart displays a comparison of Net Income and Adjusted EBITDA over a multi-year period. It features paired bars for each quarter, showing that while earnings fluctuate, the adjusted metric remains consistently higher than net income throughout the timeline.", + "page_nums": [ + 25 + ], + "document_top_summary": "This document includes:", + "file_path": "images/image-19-Financial Performance Forecast.jpg", + "keywords": [], + "tokens": [] + } + }, + { + "chunk_id": "5e17588f-ea71-56df-be53-135da93fb3a0", + "type": "text", + "content": " 0\n[images/image-17-Projected Vehicle Deliveries.jpg]\n\n\n 0\n[images/image-18-Cash Flow Trends.jpg]\n\n\n 0\n[images/image-19-Financial Performance Forecast.jpg]", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->KEY METRICS TRAILING 12 MONTHS (TTM) (Unaudited)", + "metadata": { + "length": 207, + "summary": "", + "page_nums": [ + 25, + 26 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "page", + "25", + "26" + ], + "keywords": [], + "connect_to": [ + { + "target": "2504a912-1296-5922-a39b-5aa2f2634d75", + "relation": "embeds", + "ref": "[images/image-17-Projected Vehicle Deliveries.jpg]", + "position": { + "start": 35, + "end": 85 + } + }, + { + "target": "26481825-241e-53e6-b380-dbfa166ef8cd", + "relation": "embeds", + "ref": "[images/image-18-Cash Flow Trends.jpg]", + "position": { + "start": 123, + "end": 161 + } + }, + { + "target": "f19dcb65-d67c-51d4-a0fe-112a38f24d8c", + "relation": "embeds", + "ref": "[images/image-19-Financial Performance Forecast.jpg]", + "position": { + "start": 199, + "end": 251 + } + } + ] + } + }, + { + "chunk_id": "c82a6fed-f085-5ec3-b10a-0381723fa3c9", + "type": "text", + "content": "Total quarterly revenue decreased 3% YoY to \\$24.9B. YoY, revenue was impacted by the following items $^{(1)}$ :\n- decrease in vehicle deliveries\n- lower regulatory credit revenue\n+ growth in Energy Generation and Storage\n+ growth in Services and Other\n+ positive FX impact of \\$0.3B $^{1}$\n\\+ growth in other automotive ancillary sales, partly driven by an increase in FSD subscriptions\n\\+ higher vehicle average selling price (ASP) (excl. FX impact $^{1}$ ), inclusive of mix impact", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->KEY METRICS TRAILING 12 MONTHS (TTM) (Unaudited)-->Revenue", + "metadata": { + "length": 484, + "summary": "", + "page_nums": [ + 26 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Total", + "quarterly", + "revenue", + "decreased", + "3%", + "YoY", + "24.9", + "impacted", + "items", + "decrease", + "vehicle", + "deliveries", + "lower", + "regulatory", + "credit", + "growth", + "Energy", + "Generation", + "Storage", + "Services", + "Other", + "positive", + "FX", + "impact", + "0.3", + "automotive", + "ancillary", + "sales", + "partly", + "driven", + "increase", + "FSD", + "subscriptions", + "higher", + "average", + "selling", + "price", + "ASP", + "excl", + "inclusive", + "mix" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "946fabf6-000f-557a-9d81-0b8c1a25aafb", + "type": "text", + "content": "Our quarterly operating income decreased 11% YoY to \\$1.4B, resulting in a 5.7% operating margin. YoY, operating income was primarily impacted by the following items $^{(1)}$ :\n- increase in SBC and Restructuring and Other charges\n- increase in operating expenses (excl. SBC and Restructuring and Other) driven by AI and other R&D projects and SG&A\n- higher average cost per vehicle due to lower fixed cost absorption for certain models and an increase in tariffs\n- decrease in vehicle deliveries\n- lower regulatory credit revenue\n+ higher vehicle average gross profit due to mix and pricing impacts\n+ growth in Energy Generation and Storage gross profit\n+ growth in Services and Other gross profit\n+ growth in other automotive ancillary sales, partly driven by an increase in FSD subscriptions", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->KEY METRICS TRAILING 12 MONTHS (TTM) (Unaudited)-->Profitability", + "metadata": { + "length": 794, + "summary": "", + "page_nums": [ + 26 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Our", + "quarterly", + "operating", + "income", + "decreased", + "11%", + "YoY", + "1.4", + "resulting", + "5.7%", + "margin", + "primarily", + "impacted", + "items", + "increase", + "SBC", + "Restructuring", + "Other", + "charges", + "expenses", + "excl", + "driven", + "AI", + "projects", + "SG", + "higher", + "average", + "cost", + "vehicle", + "due", + "lower", + "fixed", + "absorption", + "models", + "tariffs", + "decrease", + "deliveries", + "regulatory", + "credit", + "revenue", + "gross", + "profit", + "mix", + "pricing", + "impacts", + "growth", + "Energy", + "Generation", + "Storage", + "Services", + "automotive", + "ancillary", + "sales", + "partly", + "FSD", + "subscriptions" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "001d4b8a-b264-5cae-86a5-8c419eabbec0", + "type": "text", + "content": "Quarter-end cash, cash equivalents and investments was \\$44.1B. The sequential increase of \\$2.4B was primarily the result of positive free cash flow.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->KEY METRICS TRAILING 12 MONTHS (TTM) (Unaudited)-->Cash", + "metadata": { + "length": 150, + "summary": "", + "page_nums": [ + 26, + 27 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Quarter", + "end", + "cash", + "equivalents", + "investments", + "44.1", + "The", + "sequential", + "increase", + "2.4", + "primarily", + "result", + "positive", + "free", + "flow" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "3ff046c6-93f4-5d22-a6af-11ecf2660ce3", + "type": "table", + "content": "
In millions of USD or shares as applicable, except per share dataQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
REVENUES
Automotive sales18,65912,92515,78720,35916,750
Automotive regulatory credits692595439417542
Automotive leasing447447435429401
Total automotive revenues19,79813,96716,66121,20517,693
Energy generation and storage3,0612,7302,7893,4153,837
Services and other2,8482,6383,0463,4753,371
Total revenues25,70719,33522,49628,09524,901
COST OF REVENUES
Automotive sales16,26811,46113,56717,36513,874
Automotive leasing242239228225206
Total automotive cost of revenues16,51011,70013,79517,59014,080
Energy generation and storage2,2891,9451,9432,3422,739
Services and other2,7292,5372,8803,1093,073
Total cost of revenues21,52816,18218,61823,04119,892
Gross profit4,1793,1533,8785,0545,009
OPERATING EXPENSES
Research and development1,2761,4091,5891,6301,783
Selling, general and administrative1,3131,2511,3661,5621,655
Restructuring and other794238162
Total operating expenses2,5962,7542,9553,4303,600
INCOME FROM OPERATIONS1,5833999231,6241,409
Interest income442400392439449
Interest expense(96)(91)(86)(76)(85)
Other income (expense), net (1)595(119)320(28)(592)
INCOME BEFORE INCOME TAXES (1)2,5245891,5491,9591,181
Provision for income taxes (1)381169359570325
NET INCOME (1)2,1434201,1901,389856
Net income attributable to noncontrolling interests and redeemable noncontrolling interests in subsidiaries1511181616
NET INCOME ATTRIBUTABLE TO COMMON STOCKHOLDERS (1)2,1284091,1721,373840
Less: Buy-out of noncontrolling interest3
NET INCOME USED IN COMPUTING NET INCOME PER SHARE OF COMMON STOCK (1)2,1254091,1721,373840
Net income per share of common stock attributable to common stockholders
Basic (1)$ 0.66$ 0.13$ 0.36$ 0.43$ 0.26
Diluted (1)$ 0.60$ 0.12$ 0.33$ 0.39$ 0.24
Weighted average shares used in computing net income per share of common stock
Basic3,2133,2183,2233,2273,231
Diluted3,5173,5213,5193,5263,539
", + "path": "tables/table-8 Q4 2024-Q4 2025 Rev.html", + "metadata": { + "length": 4195, + "summary": "table-9\nFinancial table showing quarterly revenues, costs, and net income from Q4 2024 to Q4 2025 in millions USD.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-8 Q4 2024-Q4 2025 Rev.html", + "keywords": [ + "revenue", + "expenses", + "income" + ], + "tokens": [] + } + }, + { + "chunk_id": "dc7fe1d0-57ac-514a-a80a-c46825591b4c", + "type": "table", + "content": "
In millions of USD31-Dec-2431-Mar-2530-Jun-2530-Sep-2531-Dec-25
ASSETS
Current assets
Cash, cash equivalents and investments36,56336,99636,78241,64744,059
Accounts receivable, net4,4183,7823,8384,7034,576
Inventory12,01713,70614,57012,27612,392
Prepaid expenses and other current assets5,3624,9055,9436,0277,615
Total current assets58,36059,38961,13364,65368,642
Operating lease vehicles, net5,5815,4775,2305,0194,912
Energy generation and storage systems, net4,9244,8554,7884,6734,604
Property, plant and equipment, net35,83637,08838,57439,40740,643
Operating lease right-of-use assets5,1605,3305,6335,7836,027
Digital assets (2)1,0769511,2351,3151,008
Deferred tax assets (2)6,5246,6876,7216,6376,925
Other non-current assets4,6095,3345,2536,2485,045
Total assets (2)122,070125,111128,567133,735137,806
LIABILITIES AND EQUITY
Current liabilities
Accounts payable12,47413,47113,21212,81913,371
Accrued liabilities and other10,72310,80211,51912,79113,279
Deferred revenue3,1683,2433,2373,7563,424
Current portion of debt and finance leases (1)2,4562,2372,0401,9241,640
Total current liabilities28,82129,75330,00831,29031,714
Debt and finance leases, net of current portion (1)5,7575,2925,1805,7786,736
Deferred revenue, net of current portion3,3173,6103,7643,7463,631
Other long-term liabilities10,49511,03811,54312,20512,860
Total liabilities48,39049,69350,49553,01954,941
Redeemable noncontrolling interests in subsidiaries6362615958
Total stockholders' equity (2)72,91374,65377,31479,97082,137
Noncontrolling interests in subsidiaries704703697687670
Total liabilities and equity (2)122,070125,111128,567133,735137,806
(1) Breakdown of our debt is as follows:
Non-recourse debt7,8717,2386,9537,4588,150
Recourse debt76333
Days sales outstanding1419151417
Days payable outstanding5872655261
", + "path": "tables/table-9 Balance Sheet 2024-25.html", + "metadata": { + "length": 3909, + "summary": "table-10\nFinancial table showing assets, liabilities, and equity from Dec 2024 to Dec 2025. Total assets grew from 122B to 138B USD.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-9 Balance Sheet 2024-25.html", + "keywords": [ + "assets", + "liabilities", + "equity" + ], + "tokens": [] + } + }, + { + "chunk_id": "0bbfd678-18cc-5152-8775-a4c805e47d57", + "type": "table", + "content": "
In millions of USDQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
CASH FLOWS FROM OPERATING ACTIVITIES
Net income (1)2,1434201,1901,389856
Adjustments to reconcile net income to net cash provided by operating activities:
Depreciation, amortization and impairment1,4961,4471,4331,6251,643
Stock-based compensation579573635663954
Deferred income taxes (1)6(43)52225(111)
Digital assets (gain) loss, net (1)(347)125(284)(80)307
Other(93)188187333378
Changes in operating assets and liabilities1030(554)(673)2,083(214)
Net cash provided by operating activities4,8142,1562,5406,2383,813
CASH FLOWS FROM INVESTING ACTIVITIES
Capital expenditures (2)(2,780)(1,492)(2,394)(2,248)(2,393)
Purchases of investments(15,158)(6,015)(7,485)(11,402)(12,207)
Proceeds from maturities of investments10,3355,8566,9359,2958,072
Net cash used in investing activities(7,603)(1,651)(2,944)(4,355)(6,528)
CASH FLOWS FROM FINANCING ACTIVITIES
Net cash flows from other debt activities(108)(50)(23)410963
Net borrowings (repayments) under vehicle and energy product financing677(674)(400)81(377)
Net cash flows from noncontrolling interests – Solar(37)(22)(14)(20)(22)
Other453414215512146
Net cash provided by (used in) financing activities985(332)(222)983710
Effect of exchange rate changes on cash and cash equivalents and restricted cash(133)40111(17)37
Net (decrease) increase in cash and cash equivalents and restricted cash(1,937)213(515)2,849(1,968)
Cash and cash equivalents and restricted cash at beginning of period18,97417,03717,25016,73519,584
Cash and cash equivalents and restricted cash at end of period17,03717,25016,73519,58417,616
", + "path": "tables/table-10 Cash Flow Q4-25.html", + "metadata": { + "length": 3137, + "summary": "table-11\nTable shows quarterly cash flows from operating, investing, and financing activities in millions USD for Q4 2024 to Q4 2025.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-10 Cash Flow Q4-25.html", + "keywords": [ + "cash flow", + "operating", + "investing" + ], + "tokens": [] + } + }, + { + "chunk_id": "675abba3-3bcf-5b5d-94dd-a9e9a711e78b", + "type": "table", + "content": "
In millions of USD or shares as applicable, except per share dataQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840
Stock-based compensation expense, net of tax249428443459682
Digital assets (gain) loss, net of tax (1)(270)97(222)(62)239
Net income attributable to common stockholders (non-GAAP) (1) (2)2,1079341,3931,7701,761
Less: Buy-outs of noncontrolling interests3
Net income used in computing diluted EPS attributable to common stockholders (non-GAAP) (1) (2)2,1049341,3931,7701,761
EPS attributable to common stockholders, diluted (GAAP) (1)0.600.120.330.390.24
Stock-based compensation expense, net of tax, per share0.080.120.130.130.19
Digital assets (gain) loss, net of tax, per share (1)(0.08)0.03(0.06)(0.02)0.07
EPS attributable to common stockholders, diluted (non-GAAP) (1) (2)0.600.270.400.500.50
Shares used in EPS calculation, diluted (GAAP and non-GAAP)3,5173,5213,5193,5263,539
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840
Interest expense9691867685
Provision for income taxes (1)381169359570325
Depreciation, amortization and impairment1,4961,4471,4331,6251,643
Stock-based compensation expense579573635663954
Digital assets (gain) loss, net (1)(347)125(284)(80)307
Adjusted EBITDA (non-GAAP) (1) (3)4,3332,8143,4014,2274,154
Total revenues25,70719,33522,49628,09524,901
Adjusted EBITDA margin (non-GAAP) (1) (3)16.9%14.6%15.1%15.0%16.7%
Automotive gross margin (GAAP)16.6%16.2%17.2%17.0%20.4%
Less: Total regulatory credit revenue recognized3.0%3.7%2.2%1.6%2.5%
Automotive gross margin excluding regulatory credit sales (non-GAAP)13.6%12.5%15.0%15.4%17.9%
", + "path": "tables/table-11 Q4 2024-Q4 2025.html", + "metadata": { + "length": 3184, + "summary": "table-12\nFinancial table showing GAAP and non-GAAP metrics for quarters Q4-2024 through Q4-2025, including net income, EPS, adjusted EBITDA, and automotive margins.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-11 Q4 2024-Q4 2025.html", + "keywords": [ + "earnings", + "EBITDA", + "margins" + ], + "tokens": [] + } + }, + { + "chunk_id": "9a6a2ecd-f489-5cf2-971a-acb1610cbef8", + "type": "table", + "content": "
In millions of USD or shares as applicable, except per share data20212022202320242025
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794
Stock-based compensation expense, net of tax2,1211,5601,8121,3282,012
Digital assets loss (gain), net of tax79160(459)52
Release of valuation allowance on deferred tax assets(5,927)
Net income attributable to common stockholders (non-GAAP)(1)7,71914,27610,8827,9605,858
Less: Buy-outs of noncontrolling interests(5)(27)(2)(39)
Less: Dilutive convertible debt(9)(1)
Net income used in computing diluted EPS attributable to common stockholders (non-GAAP)(1)7,73314,30410,8847,9995,858
EPS attributable to common stockholders, diluted (GAAP)1.633.624.302.041.08
Stock-based compensation expense, net of tax, per share0.630.450.520.380.57
Digital assets loss (gain), net of tax, per share0.020.05(0.13)0.01
Release of valuation allowance on deferred tax assets(1.70)
EPS attributable to common stockholders, diluted (non-GAAP)(1)2.284.123.122.291.66
Shares used in EPS calculation, diluted (GAAP and non-GAAP)3,3863,4753,4853,4983,528
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794
Interest expense371191156350338
Provision for (benefit from) income taxes6991132(5,001)1,8371,423
Depreciation, amortization and impairment2,9113,7474,6675,3686,148
Stock-based compensation expense2,1211,5601,8121,9992,825
Digital assets loss (gain), net101204(589)68
Adjusted EBITDA (non-GAAP)(2)11,72219,39016,63116,05614,596
Total revenues53,82381,46296,77397,69094,827
Adjusted EBITDA margin (non-GAAP)(2)21.8%23.8%17.2%16.4%15.4%
Automotive gross margin (GAAP)29.3%28.5%19.4%18.4%17.8%
Less: Total regulatory credit revenue recognized2.3%1.8%1.7%3.0%2.4%
Automotive gross margin excluding regulatory credit sales (non-GAAP)27.0%26.7%17.7%15.4%15.4%
", + "path": "tables/table-12 Financial Metrics 2021-25.html", + "metadata": { + "length": 3537, + "summary": "table-13\nTable shows financial data from 2021 to 2025 including GAAP and non-GAAP net income, EPS, adjusted EBITDA, and margins.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-12 Financial Metrics 2021-25.html", + "keywords": [ + "Net Income", + "EBITDA", + "EPS" + ], + "tokens": [] + } + }, + { + "chunk_id": "2ca08ebb-8851-5594-a629-470029525540", + "type": "table", + "content": "
In millions of USD2Q-20223Q-20224Q-20221Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-2025
Net cash provided by operating activities (GAAP)2,3515,1003,2782,5133,0653,3084,3702423,6126,2554,8142,1562,5406,2383,813
Capital expenditures (1)(1,730)(1,803)(1,858)(2,073)(2,060)(2,459)(2,307)(2,777)(2,272)(3,513)(2,780)(1,492)(2,394)(2,248)(2,393)
Free cash flow (non-GAAP) (1)6213,2971,4204401,0058492,063(2,535)1,3402,7422,0346641463,9901,420
In millions of USD2Q-20223Q-20224Q-20221Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20 252Q-20253Q-20254Q-2025
Net income attributable to common stockholders (GAAP) (2)2,2593,2923,6872,5132,7031,8537,9281,3901,4002,1732,1284091,1721,373840
Interest expense445333292838617686929691867685
Provision for (benefit from) income taxes (2)205305276261323167(5,752)483371602381169359570325
Depreciation, amortization and impairment9229569891,0461,1541,2351,2321,2461,2781,3481,4961,4471,4331,6251,643
Stock-based compensation expense361362419418445465484524439457579573635663954
Digital assets loss (gain), net (2)17034(335)100(7)(347)125(284)(80)307
Adjusted EBITDA (non-GAAP) (2) (3)3,9614,9685,4384,2674,6533,7583,9533,3843,6744,6654,3332,8143,4014,2274,154
", + "path": "tables/table-13 Financial Data 2022-25.html", + "metadata": { + "length": 3084, + "summary": "table-14\nTable shows quarterly financials from 2Q-2022 to 4Q-2025 in millions USD, including operating cash flow, capex, free cash flow, net income, and adjusted EBITDA.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-13 Financial Data 2022-25.html", + "keywords": [ + "cash flow", + "EBITDA", + "net income" + ], + "tokens": [] + } + }, + { + "chunk_id": "6c7a815e-17db-5583-abeb-5ded325f3ce4", + "type": "table", + "content": "
In millions of USD1Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-2025
Net cash provided by operating activities – TTM (GAAP)13,24213,95612,16413,25610,98511,53214,47914,92316,83715,76515,74814,747
Capital expenditures – TTM (1)(7,464)(7,794)(8,450)(8,899)(9,603)(9,815)(10,869)(11,342)(10,057)(10,179)(8,914)(8,527)
Free cash flow – TTM (non-GAAP) (1)5,7786,1623,7144,3571,3821,7173,6103,5816,7805,5866,8346,220
In millions of USD1Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-20
Net income attributable to common stockholders – TTM (GAAP) (2)11,75112,19510,75614,99713,87412,57112,8917,0916,1105,8825,0823,794
Interest expense – TTM159143128156203261315350365365349338
Provision for (benefit from) income taxes – TTM (2)1,0471,1651,027(5,001)(4,779)(4,731)(4,296)1,8371,5231,5111,4791,423
Depreciation, amortization and impairment – TTM3,9134,1454,4244,6674,8674,9915,1045,3685,5695,7246,0016,148
Stock-based compensation expense – TTM1,5601,6441,7471,8121,9181,9121,9041,9992,0482,2442,4502,825
Digital assets loss (gain), net – TTM (2)2043434(335)(235)(242)(589)(129)(513)(586)68
Adjusted EBITDA – TTM (non-GAAP) (2) (3)18,63419,32618,11616,63115,74814,76915,67616,05615,48615,21314,77514,596
", + "path": "tables/table-14 Financial Metrics 2023-25.html", + "metadata": { + "length": 2886, + "summary": "table-15\nTable shows quarterly financial data from 1Q 2023 to 4Q 2025, including operating cash flow, capital expenditures, free cash flow, net income, and adjusted EBITDA in millions of USD.", + "page_nums": [ + 27 + ], + "document_top_summary": "This document includes:", + "file_path": "tables/table-14 Financial Metrics 2023-25.html", + "keywords": [ + "cash flow", + "EBITDA", + "net income" + ], + "tokens": [] + } + }, + { + "chunk_id": "15c18264-8e1e-5db6-b3c9-70cd181d1f39", + "type": "text", + "content": "STATEMENT OF OPERATIONS\n(Unaudited)\n\n[tables/table-8 Q4 2024-Q4 2025 Rev.html]\n\nBALANCE SHEET\n(Unaudited)\n\n[tables/table-9 Balance Sheet 2024-25.html]\n\nSTATEMENT OF CASH FLOWS\n(Unaudited)\n\n[tables/table-10 Cash Flow Q4-25.html]\n\nRECONCILIATION OF GAAP TO NON-GAAP FINANCIAL INFORMATION (Unaudited)\n\n[tables/table-11 Q4 2024-Q4 2025.html]\n\nRECONCILIATION OF GAAP TO NON-GAAP FINANCIAL INFORMATION\n(Unaudited)\n\n[tables/table-12 Financial Metrics 2021-25.html]\n\nRECONCILIATION OF GAAP TO NON-GAAP FINANCIAL INFORMATION\n(Unaudited)\n\n[tables/table-13 Financial Data 2022-25.html]\n\n\n[tables/table-14 Financial Metrics 2023-25.html]\n\nTTM = Trailing twelve months\n(1) Beginning in Q1'25, Capital expenditures is presented inclusive of purchases of energy generation and storage systems and all prior periods have been adjusted.\n(2) As a result of the adoption of the new crypto assets standard, the previously reported quarterly periods in 2024 have been recast.\n(3) Beginning in Q1'25, Adjusted EBITDA (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->FINANCIAL STATEMENTS", + "metadata": { + "length": 1418, + "summary": "", + "page_nums": [ + 27, + 34 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "STATEMENT", + "OF", + "OPERATIONS", + "Unaudited", + "BALANCE", + "SHEET", + "CASH", + "FLOWS", + "RECONCILIATION", + "GAAP", + "TO", + "NON", + "FINANCIAL", + "INFORMATION", + "TTM", + "Trailing", + "twelve", + "months", + "Beginning", + "Q1", + "25", + "Capital", + "expenditures", + "presented", + "inclusive", + "purchases", + "energy", + "generation", + "storage", + "systems", + "prior", + "periods", + "adjusted", + "As", + "result", + "adoption", + "crypto", + "assets", + "standard", + "previously", + "reported", + "quarterly", + "2024", + "recast", + "Adjusted", + "EBITDA", + "net", + "digital", + "gains", + "losses" + ], + "keywords": [], + "connect_to": [ + { + "target": "3ff046c6-93f4-5d22-a6af-11ecf2660ce3", + "relation": "embeds", + "ref": "[tables/table-8 Q4 2024-Q4 2025 Rev.html]", + "position": { + "start": 37, + "end": 78 + } + }, + { + "target": "dc7fe1d0-57ac-514a-a80a-c46825591b4c", + "relation": "embeds", + "ref": "[tables/table-9 Balance Sheet 2024-25.html]", + "position": { + "start": 107, + "end": 150 + } + }, + { + "target": "0bbfd678-18cc-5152-8775-a4c805e47d57", + "relation": "embeds", + "ref": "[tables/table-10 Cash Flow Q4-25.html]", + "position": { + "start": 189, + "end": 227 + } + }, + { + "target": "675abba3-3bcf-5b5d-94dd-a9e9a711e78b", + "relation": "embeds", + "ref": "[tables/table-11 Q4 2024-Q4 2025.html]", + "position": { + "start": 299, + "end": 337 + } + }, + { + "target": "9a6a2ecd-f489-5cf2-971a-acb1610cbef8", + "relation": "embeds", + "ref": "[tables/table-12 Financial Metrics 2021-25.html]", + "position": { + "start": 409, + "end": 457 + } + }, + { + "target": "2ca08ebb-8851-5594-a629-470029525540", + "relation": "embeds", + "ref": "[tables/table-13 Financial Data 2022-25.html]", + "position": { + "start": 529, + "end": 574 + } + }, + { + "target": "6c7a815e-17db-5583-abeb-5ded325f3ce4", + "relation": "embeds", + "ref": "[tables/table-14 Financial Metrics 2023-25.html]", + "position": { + "start": 577, + "end": 625 + } + } + ] + } + }, + { + "chunk_id": "31babb3c-1abf-5f64-90c7-e8e8a5384bbd", + "type": "text", + "content": "Tesla will provide a live webcast of its fourth quarter 2025 financial results conference call beginning at 4:30 p.m. CT on January 28, 2026 at ir.tesla.com. This webcast will also be available for replay for approximately one year thereafter.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->WEBCAST INFORMATION", + "metadata": { + "length": 243, + "summary": "", + "page_nums": [ + 34 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Tesla", + "provide", + "live", + "webcast", + "fourth", + "quarter", + "2025", + "financial", + "results", + "conference", + "call", + "beginning", + "30", + "CT", + "January", + "28", + "2026", + "ir", + "tesla", + "This", + "replay", + "approximately", + "year" + ], + "keywords": [], + "connect_to": [] + } + }, + { + "chunk_id": "19e3f236-d15a-5b2a-8589-43d28c5316fe", + "type": "text", + "content": "When used in this update, certain terms have the following meanings. Our vehicle deliveries include only vehicles that have been transferred to end customers with all paperwork correctly completed. Our energy product deployment volume includes both customer units when installed and equipment sales at time of delivery. \"Net income attributable to common stockholders (non-GAAP)\" is equal to (i) net income attributable to common stockholders before (ii)(a) stock-based compensation expense, net of tax, (b) digital assets (gain) loss, net of tax and (c) release of valuation allowance on deferred tax assets. \"Adjusted EBITDA (non-GAAP)\" is equal to (i) net income attributable to common stockholders before (ii)(a) interest expense, (b) provision for (benefit from) income taxes, (c) depreciation, amortization and impairment, (d) stock-based compensation expense and (e) digital assets loss (gain), net. \"Free cash flow\" is operating cash flow less capital expenditures. Average cost per vehicle is cost of automotive sales divided by new vehicle deliveries (excluding operating leases). \"Days sales outstanding\" is equal to (i) average accounts receivable, net for the period divided by (ii) total revenues and multiplied by (iii) the number of days in the period. \"Days payable outstanding\" is equal to (i) average accounts payable for the period divided by (ii) total cost of revenues and multiplied by (iii) the number of days in the period. \"Days of supply\" is calculated by dividing new car ending inventory by the relevant period's deliveries and using trading days. Constant currency impacts are calculated by comparing actuals against current results converted into USD using average exchange rates from the prior period.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->CERTAIN TERMS", + "metadata": { + "length": 1733, + "summary": "This passage defines key financial and operational terms used in a specific update. It clarifies that vehicle deliveries refer to units transferred to end customers with completed paperwork, while energy product deployment includes installed customer units and equipment sales. The text details non-GAAP measures: 'Net income attributable to common stockholders' adjusts for stock-based compensation, digital asset gains/losses, and valuation allowances; 'Adjusted EBITDA' excludes interest, taxes, depreciation, amortization, impairment, stock-based compensation, and digital asset impacts. 'Free cash flow' is defined as operating cash flow minus capital expenditures. Operational metrics include 'Average cost per vehicle' (automotive sales cost divided by new deliveries excluding leases), 'Days sales outstanding' (average receivables divided by revenue times days in period), 'Days payable outstanding' (average payables divided by cost of revenues times days in period), and 'Days of supply' (ending inventory divided by deliveries using trading days). Finally, constant currency impacts are calculated by comparing actuals against results converted to USD using prior period average exchange rates.", + "page_nums": [ + 34 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "When", + "update", + "terms", + "meanings", + "Our", + "vehicle", + "deliveries", + "include", + "vehicles", + "transferred", + "end", + "customers", + "paperwork", + "correctly", + "completed", + "energy", + "product", + "deployment", + "volume", + "includes", + "customer", + "units", + "installed", + "equipment", + "sales", + "time", + "delivery", + "Net", + "income", + "attributable", + "common", + "stockholders", + "GAAP", + "equal", + "net", + "ii", + "stock", + "based", + "compensation", + "expense", + "tax", + "digital", + "assets", + "gain", + "loss", + "release", + "valuation", + "allowance", + "deferred", + "Adjusted", + "EBITDA", + "interest", + "provision", + "benefit", + "taxes", + "depreciation", + "amortization", + "impairment", + "Free", + "cash", + "flow", + "operating", + "capital", + "expenditures", + "Average", + "cost", + "automotive", + "divided", + "excluding", + "leases", + "Days", + "outstanding", + "average", + "accounts", + "receivable", + "period", + "total", + "revenues", + "multiplied", + "iii", + "number", + "days", + "payable", + "supply", + "calculated", + "dividing", + "car", + "ending", + "inventory", + "relevant", + "trading", + "Constant", + "currency", + "impacts", + "comparing", + "actuals", + "current", + "results", + "converted", + "USD", + "exchange", + "rates", + "prior" + ], + "keywords": [ + "non-GAAP metrics", + "vehicle deliveries", + "cash flow" + ], + "connect_to": [] + } + }, + { + "chunk_id": "332edac0-294c-5e5b-8599-a0e52b25e53a", + "type": "text", + "content": "Consolidated financial information has been presented in accordance with GAAP as well as on a non-GAAP basis to supplement our consolidated financial results. Our non-GAAP financial measures include non-GAAP net income (loss) attributable to common stockholders, non-GAAP net income (loss) attributable to common stockholders on a diluted per share basis (calculated using weighted average shares for GAAP diluted net income (loss) attributable to common stockholders), Adjusted EBITDA margin, non-GAAP automotive gross margin and free cash flow. These non-GAAP financial measures also facilitate management's internal comparisons to Tesla's historical performance as well as comparisons to the operating results of other companies. Management believes that it is useful to supplement its GAAP financial statements with this non-GAAP information because management uses such information internally for its operating, budgeting and financial planning purposes. Management also believes that presentation of the non-GAAP financial measures provides useful information to our investors regarding our financial condition and results of operations, so that investors can see through the eyes of Tesla management regarding important financial metrics that Tesla uses to run the business and allowing investors to better understand Tesla's performance. Non-GAAP information is not prepared under a comprehensive set of accounting rules and therefore, should only be read in conjunction with financial information reported under U.S. GAAP when understanding Tesla's operating performance. A reconciliation between GAAP and non-GAAP financial information is provided above.", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->NON-GAAP FINANCIAL INFORMATION", + "metadata": { + "length": 1664, + "summary": "Tesla presents consolidated financial information under both GAAP and non-GAAP standards to supplement its results. Key non-GAAP measures include net income attributable to common stockholders, diluted per share figures, Adjusted EBITDA margin, automotive gross margin, and free cash flow. These metrics aid internal management comparisons with historical performance and other companies, supporting operating, budgeting, and planning activities. Management believes these non-GAAP figures provide investors with a clearer view of Tesla's financial condition and operational results by reflecting the metrics used to run the business. However, since non-GAAP data is not prepared under comprehensive accounting rules, it should be read alongside U.S. GAAP information for a complete understanding of Tesla's performance. A reconciliation between GAAP and non-GAAP data is provided elsewhere.", + "page_nums": [ + 34 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Consolidated", + "financial", + "information", + "presented", + "accordance", + "GAAP", + "basis", + "supplement", + "consolidated", + "results", + "Our", + "measures", + "include", + "net", + "income", + "loss", + "attributable", + "common", + "stockholders", + "diluted", + "share", + "calculated", + "weighted", + "average", + "shares", + "Adjusted", + "EBITDA", + "margin", + "automotive", + "gross", + "free", + "cash", + "flow", + "These", + "facilitate", + "management", + "internal", + "comparisons", + "Tesla", + "historical", + "performance", + "operating", + "companies", + "Management", + "believes", + "statements", + "internally", + "budgeting", + "planning", + "purposes", + "presentation", + "investors", + "condition", + "operations", + "eyes", + "important", + "metrics", + "run", + "business", + "allowing", + "understand", + "Non", + "prepared", + "comprehensive", + "set", + "accounting", + "rules", + "read", + "conjunction", + "reported", + "understanding", + "reconciliation", + "provided" + ], + "keywords": [ + "non-GAAP", + "GAAP", + "financial measures" + ], + "connect_to": [] + } + }, + { + "chunk_id": "34263854-525e-5a28-b9fd-a88d4813756e", + "type": "text", + "content": "Certain statements in this update, including, but not limited to, statements in the “Outlook” section; statements relating to the development, strategy, ramp, production and capacity, demand and market growth, cost, pricing and profitability, investment, deliveries, deployment, availability and other features and improvements and timing of existing and future Tesla products and services and supporting infrastructure; statements regarding operating margin, operating profits, spending and liquidity; and statements regarding expansion, improvements and/or ramp and related timing at our facilities are “forward-looking statements” within the meaning of the Private Securities Litigation Reform Act of 1995. Forward-looking statements are based on assumptions and management’s current expectations, involve certain risks and uncertainties, and are not guarantees. Future results may differ materially from those expressed in any forward-looking statement. The following important factors, without limitation, could cause actual results to differ materially from those in the forward-looking statements: the risk of delays in launching and/or manufacturing our products, services and features cost-effectively; our ability to build and/or grow our products and services, sales, delivery, installation, servicing and charging capabilities and effectively manage this growth; our ability to successfully and timely develop, introduce and scale, as well as our consumers’ demand for, products and services based on artificial intelligence, robotics and automation, electric vehicles, advanced driver assistance systems, and ride-hailing services generally and our vehicles and services specifically; the ability of suppliers to deliver components according to schedules, prices, quality and volumes acceptable to us, and our ability to manage such components effectively; any issues with lithium-ion cells or other components manufactured at our factories; our ability to ramp our factories in accordance with our plans; our ability to procure supply of battery cells, including through our own manufacturing; risks relating to international operations and expansion, including unfavorable and uncertain regulatory, political, economic, tax, tariff, export controls and labor conditions; any failures by Tesla products to perform as expected or if product recalls occur; the risk of product liability claims; competition in the automotive, transportation and energy product and services and robotics markets; our ability to maintain public credibility and confidence in our long-term business prospects; our ability to manage risks relating to our various product financing programs; the status of government and economic incentives for electric vehicles and energy products; our ability to attract, hire and retain key employees and qualified personnel; our ability to maintain the security of our information and production and product systems; our compliance with various regulations and laws applicable to our operations and products, which may evolve from time to time; risks relating to our indebtedness and financing strategies; and adverse foreign exchange movements. More information on potential factors that could affect our financial results is included from time to time in our Securities and Exchange Commission filings and reports, including the risks identified under the section captioned “Risk Factors” in our annual report on Form 10-K filed with the SEC on January 30, 2025 and subsequent quarterly reports on Form 10-Q. Tesla disclaims any obligation to update information contained in these forward-looking statements whether as a result of new information, future events or otherwise.\nTESLA", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->FORWARD-LOOKING STATEMENTS", + "metadata": { + "length": 3711, + "summary": "This passage from Tesla outlines that various statements in the update, particularly regarding future outlooks, product development, production capacity, financial metrics, and facility expansions, constitute forward-looking statements under the Private Securities Litigation Reform Act of 1995. These statements reflect management's current expectations based on assumptions and are subject to risks and uncertainties, meaning actual results may differ materially. The text lists numerous specific risk factors that could impact outcomes, including manufacturing delays, supply chain challenges, regulatory hurdles, competition, product performance issues, employee retention, and foreign exchange fluctuations. Tesla advises investors to consult SEC filings, specifically the Form 10-K filed on January 30, 2025, for detailed risk disclosures. The company explicitly disclaims any obligation to update these forward-looking statements due to new information or future events.", + "page_nums": [ + 34 + ], + "document_top_summary": "This document includes:", + "tokens": [ + "Certain", + "statements", + "update", + "including", + "limited", + "Outlook", + "section", + "relating", + "development", + "strategy", + "ramp", + "production", + "capacity", + "demand", + "market", + "growth", + "cost", + "pricing", + "profitability", + "investment", + "deliveries", + "deployment", + "availability", + "features", + "improvements", + "timing", + "existing", + "future", + "Tesla", + "products", + "services", + "supporting", + "infrastructure", + "operating", + "margin", + "profits", + "spending", + "liquidity", + "expansion", + "related", + "facilities", + "forward", + "meaning", + "Private", + "Securities", + "Litigation", + "Reform", + "Act", + "1995", + "Forward", + "based", + "assumptions", + "management", + "current", + "expectations", + "involve", + "risks", + "uncertainties", + "guarantees", + "Future", + "results", + "differ", + "materially", + "expressed", + "statement", + "The", + "important", + "factors", + "limitation", + "actual", + "risk", + "delays", + "launching", + "manufacturing", + "effectively", + "ability", + "build", + "grow", + "sales", + "delivery", + "installation", + "servicing", + "charging", + "capabilities", + "manage", + "successfully", + "timely", + "develop", + "introduce", + "scale", + "consumers", + "artificial", + "intelligence", + "robotics", + "automation", + "electric", + "vehicles", + "advanced", + "driver", + "assistance", + "systems", + "ride", + "hailing", + "generally", + "specifically", + "suppliers", + "deliver", + "components", + "schedules", + "prices", + "quality", + "volumes", + "acceptable", + "issues", + "lithium", + "ion", + "cells", + "manufactured", + "factories", + "accordance", + "plans", + "procure", + "supply", + "battery", + "international", + "operations", + "unfavorable", + "uncertain", + "regulatory", + "political", + "economic", + "tax", + "tariff", + "export", + "controls", + "labor", + "conditions", + "failures", + "perform", + "expected", + "product", + "recalls", + "occur", + "liability", + "claims", + "competition", + "automotive", + "transportation", + "energy", + "markets", + "maintain", + "public", + "credibility", + "confidence", + "long", + "term", + "business", + "prospects", + "financing", + "programs", + "status", + "government", + "incentives", + "attract", + "hire", + "retain", + "key", + "employees", + "qualified", + "personnel", + "security", + "information", + "compliance", + "regulations", + "laws", + "applicable", + "evolve", + "time", + "indebtedness", + "strategies", + "adverse", + "foreign", + "exchange", + "movements", + "More", + "potential", + "affect", + "financial", + "included", + "Exchange", + "Commission", + "filings", + "reports", + "identified", + "captioned", + "Risk", + "Factors", + "annual", + "report", + "Form", + "10", + "filed", + "SEC", + "January", + "30", + "2025", + "subsequent", + "quarterly", + "disclaims", + "obligation", + "contained", + "result", + "events", + "TESLA" + ], + "keywords": [ + "forward-looking statements", + "risk factors", + "legal disclaimer" + ], + "connect_to": [] + } + } + ] +} \ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/doc_nav.json b/apps/api/app/data/demo_documents/tsla-q4-2025/doc_nav.json new file mode 100644 index 000000000..d27f1ba4c --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/doc_nav.json @@ -0,0 +1,163 @@ +{ + "version": "1.0", + "file_name": "TSLA-Q4-2025-Update.pdf", + "stats": { + "total_chunks": 70, + "text_chunks": 36, + "image_chunks": 19, + "table_chunks": 15, + "max_depth": 1 + }, + "sections": [ + { + "title": "Root", + "path": "Default_Root/TSLA-Q4-2025-Update.pdf-->HIGHLIGHTS", + "level": 1, + "summary": "[tables/table-0 Tesla 2025 Results.html]", + "chunk_count": 36, + "children": [] + } + ], + "resources": { + "images": [ + { + "path": "images/image-1-Capacity Growth Projection.jpg", + "summary": "image-1 The chart illustrates a steady increase in existing capacity from mid-2021 through late 2025, characterized by gradual step-wise growth. A significant surge is projected for the future planned capacity starting in early 2026, reaching levels well above the current trajectory." + }, + { + "path": "images/image-2-FSD Mileage Growth.jpg", + "summary": "image-2 The chart illustrates the projected accumulation of miles driven on Full Self-Driving software over time. It distinguishes between two versions: an older version (V11 and before) represented by a blue area, and a newer version (V12 and beyond) shown in red. While mileage for the older version remains relatively flat, the newer version shows exponential growth starting around early 2024, eventually dominating the total distance traveled by late 2025." + }, + { + "path": "images/image-3-Tesla Silicon Optimization.jpg", + "summary": "image-3 The image displays a high-performance computing chip alongside key performance metrics. It highlights significant improvements in hardened block quantization, memory capacity, and raw compute power compared to previous generations. The overall total improvement is presented as a substantial increase over the AI4 architecture." + }, + { + "path": "images/image-4-Growth Trend 2025.jpg", + "summary": "image-4 The chart illustrates a steady increase in values over time, starting from June 2025 and extending through December 2025. The data shows minimal growth initially, followed by a significant upward trajectory beginning around August, reaching its peak at the end of the year." + }, + { + "path": "images/image-5-Tesla Model Y Driving.jpg", + "summary": "image-5 A sleek silver electric SUV travels along a winding highway through a scenic landscape. The vehicle is captured in motion with blurred surroundings, emphasizing speed against a backdrop of rolling hills and distant mountains under a bright sky." + }, + { + "path": "images/image-6-Red Tesla on Coastal Road.jpg", + "summary": "image-6 A red electric sedan drives along a winding asphalt road carved into a steep, rocky mountainside. The vehicle is captured in motion with a blurred background, emphasizing speed as it navigates the curve. To the right of the road lies a calm body of blue water, while the left side features a rugged cliff face covered in sparse green vegetation under a clear sky." + }, + { + "path": "images/image-7-Tesla Interior Interface.jpg", + "summary": "image-7 The image displays the interior of a Tesla vehicle, focusing on the driver's perspective. A person is interacting with the large central touchscreen display, which shows navigation maps and vehicle controls. The steering wheel features the Tesla logo, and ambient lighting accents are visible along the dashboard. Through the windshield, a modern stone building is seen outside." + }, + { + "path": "images/image-8-Tesla Interior.jpg", + "summary": "image-8 The image displays the driver's perspective inside a Tesla vehicle, featuring a minimalist dashboard with a large central touchscreen. The steering wheel is visible on the left side, and the car appears to be in motion on a city street during daylight hours." + }, + { + "path": "images/image-9-Tesla Cybertruck in Snow.jpg", + "summary": "image-9 A futuristic electric pickup truck is shown driving on a frozen, snow-covered surface. The vehicle features its signature angular design and metallic finish, with snow clinging to the rear bumper and wheel wells. It is set against a backdrop of distant mountains under a twilight sky." + }, + { + "path": "images/image-10-Tesla Semi Trucks.jpg", + "summary": "image-10 Two white electric semi-trucks are parked side-by-side in an outdoor lot. The vehicles feature a futuristic, aerodynamic design with large windshields and distinctive horizontal headlights. They are positioned against a backdrop of industrial buildings and hills under a cloudy sky." + }, + { + "path": "images/image-11-US Lightning Map.jpg", + "summary": "image-11 A map of the United States displays numerous red markers with lightning symbols. These indicators are concentrated heavily along the West Coast, particularly in California, and throughout Texas. Additional clusters appear in the Southeast near Atlanta and scattered locations in the Midwest and Northeast." + }, + { + "path": "images/image-12-Tesla Factory Milestone.jpg", + "summary": "image-12 Factory workers and staff gather for a group photo on an automotive assembly line to celebrate the production of the 900th vehicle. A white car is positioned centrally in front of the crowd, while employees hold silver balloons displaying the number \"900\" to mark this significant manufacturing achievement." + }, + { + "path": "images/image-13-Tesla Factory Milestone.jpg", + "summary": "image-13 A large group of factory workers gathers inside a manufacturing facility to celebrate a significant achievement. Several employees in the front row hold up oversized gold balloons that spell out \"600,000,\" marking a major production milestone for the company. The background reveals an industrial setting filled with machinery and assembly lines." + }, + { + "path": "images/image-14-Vehicle Delivery Trends.jpg", + "summary": "image-14 A bar chart displays quarterly vehicle delivery volumes in millions of units spanning from the first quarter of 2023 through the fourth quarter of 2025. The data illustrates fluctuating delivery figures across the timeline, with values generally ranging between approximately 0.3 and 0.5 million units per quarter." + }, + { + "path": "images/image-15-Quarterly Cash Flow.jpg", + "summary": "image-15 The chart compares operating cash flow and free cash flow across multiple quarters from 2023 through 2025. Blue bars represent operating cash flow, while red bars indicate free cash flow. Operating cash flow remains consistently positive throughout the period, whereas free cash flow fluctuates significantly, including a notable negative value in early 2024." + }, + { + "path": "images/image-16-Financial Performance Chart.jpg", + "summary": "image-16 This bar chart compares Net Income and Adjusted EBITDA across quarterly periods from 2023 through 2025. The blue bars represent Net Income while the red bars indicate Adjusted EBITDA, with values measured in billions of dollars. A significant spike in Net Income is visible during the fourth quarter of 2023, whereas Adjusted EBITDA remains consistently higher than Net Income throughout most of the timeline." + }, + { + "path": "images/image-17-Projected Vehicle Deliveries.jpg", + "summary": "image-17 The bar chart illustrates a forecast of vehicle deliveries in millions of units spanning from the first quarter of 2023 through the fourth quarter of 2025. The data indicates an upward trend starting in early 2023, reaching a peak around late 2023 and continuing at high levels throughout 2024 before showing a slight decline toward the end of the projection period in 2025." + }, + { + "path": "images/image-18-Cash Flow Trends.jpg", + "summary": "image-18 The chart compares operating and free cash flow across multiple quarters from 2023 through 2025. Operating cash flow is consistently higher than free cash flow throughout the timeline, with both metrics showing significant fluctuations over time." + }, + { + "path": "images/image-19-Financial Performance Forecast.jpg", + "summary": "image-19 The chart displays a comparison of Net Income and Adjusted EBITDA over a multi-year period. It features paired bars for each quarter, showing that while earnings fluctuate, the adjusted metric remains consistently higher than net income throughout the timeline." + } + ], + "tables": [ + { + "path": "tables/table-0 Tesla 2025 Results.html", + "summary": "table-1 Tesla reported strong 2025 financials with $4.4B operating income and expanded AI initiatives including Robotaxi and Optimus." + }, + { + "path": "tables/table-1 Q4 2025 Financials.html", + "summary": "table-2 Table shows Tesla's quarterly financials through Q4 2025, including revenues, gross profit, operating income, and free cash flow in millions of dollars." + }, + { + "path": "tables/table-2 Financial Data 2021-25.html", + "summary": "table-3 Table shows financial metrics from 2021 to 2025, including revenues, gross profit, operating income, and free cash flow in millions of dollars." + }, + { + "path": "tables/table-3 Tesla Q4-2025 Data.html", + "summary": "table-4 Table shows Tesla's quarterly production, deliveries, and inventory from Q4 2024 to Q4 2025. Total deliveries dropped 16% YoY in Q4 2025." + }, + { + "path": "tables/table-4 Tesla 2021-2025 Data.html", + "summary": "table-5 Table shows Tesla's production, deliveries, and infrastructure metrics from 2021 to 2025. Total production and deliveries peaked in 2023 then declined by 2025." + }, + { + "path": "tables/table-5 Tesla Production.html", + "summary": "table-6 Tesla operates global facilities in California, Shanghai, Berlin, Texas, and Nevada for Model 3/Y, S/X, Cybertruck, Semi, Megapack, Powerwall, and Optimus." + }, + { + "path": "tables/table-6 Facility Status.html", + "summary": "table-7 Table lists AI training and battery manufacturing facilities. Texas hosts Cortex 1 (production) and Cortex 2 (construction). Nevada and Texas have LFP, 4680, cathode materials, and lithium refining plants in various stages." + }, + { + "path": "tables/table-7 Autonomous Driving Status.html", + "summary": "table-8 Table lists US states and metro areas with autonomous driving status. California SF Bay Area has safety drivers. Texas Austin is ramping unsupervised. Other locations like Dallas, Houston, Phoenix, Miami, Orlando, Tampa, and Las Vegas are scheduled for 1H 2026." + }, + { + "path": "tables/table-8 Q4 2024-Q4 2025 Rev.html", + "summary": "table-9 Financial table showing quarterly revenues, costs, and net income from Q4 2024 to Q4 2025 in millions USD." + }, + { + "path": "tables/table-9 Balance Sheet 2024-25.html", + "summary": "table-10 Financial table showing assets, liabilities, and equity from Dec 2024 to Dec 2025. Total assets grew from 122B to 138B USD." + }, + { + "path": "tables/table-10 Cash Flow Q4-25.html", + "summary": "table-11 Table shows quarterly cash flows from operating, investing, and financing activities in millions USD for Q4 2024 to Q4 2025." + }, + { + "path": "tables/table-11 Q4 2024-Q4 2025.html", + "summary": "table-12 Financial table showing GAAP and non-GAAP metrics for quarters Q4-2024 through Q4-2025, including net income, EPS, adjusted EBITDA, and automotive margins." + }, + { + "path": "tables/table-12 Financial Metrics 2021-25.html", + "summary": "table-13 Table shows financial data from 2021 to 2025 including GAAP and non-GAAP net income, EPS, adjusted EBITDA, and margins." + }, + { + "path": "tables/table-13 Financial Data 2022-25.html", + "summary": "table-14 Table shows quarterly financials from 2Q-2022 to 4Q-2025 in millions USD, including operating cash flow, capex, free cash flow, net income, and adjusted EBITDA." + }, + { + "path": "tables/table-14 Financial Metrics 2023-25.html", + "summary": "table-15 Table shows quarterly financial data from 1Q 2023 to 4Q 2025, including operating cash flow, capital expenditures, free cash flow, net income, and adjusted EBITDA in millions of USD." + } + ] + } +} \ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/full.md b/apps/api/app/data/demo_documents/tsla-q4-2025/full.md new file mode 100644 index 000000000..be7372e31 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/full.md @@ -0,0 +1,333 @@ + +# Q4 and FY 2025 Update + + +Highlights 03 + +Financial Summary 04 + +Operational Summary 06 + +Manufacturing & Hardware 08 + +Supporting Infrastructure 09 + +AI & Software 10 + +Services 11 + +Other Updates 12 + +Outlook 13 + +Photos & Charts 14 + +Key Metrics 24 + +Financial Statements 27 + +Additional Information 34 + + +# HIGHLIGHTS + + +
Profitability$4.4B GAAP operating income in 2025; $1.4B in Q42025 marked a critical year for Tesla as we further expanded our mission and continued our transition from a hardware-centric business to a physical AI company. We laid the foundation for the future of Tesla as we further advanced FSD (Supervised) $^{4}$ , launched our Robotaxi service, began installing production lines for Cybercab and fine-tuned our production-primed Optimus design while expanding our AI training infrastructure.
$3.8B GAAP net income in 2025; $0.8B in Q4
$5.9B non-GAAP net income $^{1}$ in 2025; $1.8B in Q4
CashOperating cash flow of $14.7B in 2025; $3.8B in Q4Our approach to autonomous vehicles and humanoid robots mirrors the way we approached electric vehicles and energy storage – at the system level where we identify the limiting factor and develop bespoke and scalable solutions (batteries, power electronics, inverters, software, AI silicon, etc.) to optimize for cost, functionality, efficiency and safety. Our vertical integration has enabled us to achieve economies of scale in a profitable manner, quickly troubleshoot bottlenecks in production and iteratively optimize our technologies more rapidly than others.
Free cash flow $^{2}$ of $6.2B in 2025; $1.4B in Q4In 2025, we completed the refresh of our vehicle lineup with the launch of the new Model Y, including additional variants. We believe that maintaining an optimized and efficient product portfolio, with a continued focus on high-value features such as long range, best-in-class software and autonomy, is the correct strategy to win the autos market of the future. Similarly, we continued to evolve our energy offerings for commercial, utility and retail customers, as we position ourselves as a supplier of choice for clean, affordable and rapidly deployable energy capacity ahead of expected sustained demand growth for electricity.
$7.5B increase in our cash and investments $^{3}$ in 2025 to $44.1B
OperationsBegan removing safety monitor from our Robotaxis in Austin in JanuaryIn 2026, we will further invest in the infrastructure needed to support clean energy and transport and autonomous robots, including the ramp of six new production lines across vehicle, robots, energy storage and battery manufacturing, while further leveraging our existing factory, charging and service center footprint to support future growth.
Record Q4 & FY'25 energy storage deployments
Record vehicle deliveries in APAC
+ +# SUMMARY + +FINANCIAL SUMMARY +(Unaudited) + +
($ in millions, except percentages and per share data)Q4-2024Q1-2025Q2-2025Q3-2025Q4-2025YoY
Total automotive revenues19,79813,96716,66121,20517,693-11%
Energy generation and storage revenue3,0612,7302,7893,4153,83725%
Services and other revenue2,8482,6383,0463,4753,37118%
Total revenues25,70719,33522,49628,09524,901-3%
Total gross profit4,1793,1533,8785,0545,00920%
Total GAAP gross margin16.3%16.3%17.2%18.0%20.1%386 bp
Operating expenses2,5962,7542,9553,4303,60039%
Income from operations1,5833999231,6241,409-11%
Operating margin6.2%2.1%4.1%5.8%5.7%-50 bp
Adjusted EBITDA (1) (2)4,3332,8143,4014,2274,154-4%
Adjusted EBITDA margin (1) (2)16.9%14.6%15.1%15.0%16.7%-17 bp
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840-61%
Net income attributable to common stockholders (non-GAAP) (1) (3)2,1079341,3931,7701,761-16%
EPS attributable to common stockholders, diluted (GAAP) (1)0.600.120.330.390.24-60%
EPS attributable to common stockholders, diluted (non-GAAP) (1) (3)0.600.270.400.500.50-17%
Net cash provided by operating activities4,8142,1562,5406,2383,813-21%
Capital expenditures (4)(2,780)(1,492)(2,394)(2,248)(2,393)-14%
Free cash flow (4)2,0346641463,9901,420-30%
Cash, cash equivalents and investments36,56336,99636,78241,64744,05921%
+ +(1) As a result of the adoption of the new crypto assets standard, the previously reported quarterly periods in 2024 have been recast. +(2) Beginning in Q1'25, Adjusted EBITDA (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted. +(3) Beginning in Q1'25, Net income attributable to common stockholders (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted. +(4) Beginning in Q1'25, Capital expenditures is presented inclusive of purchases of energy generation and storage systems and all prior periods have been adjusted. + +FINANCIAL SUMMARY +(Unaudited) + +
($ in millions, except percentages and per share data)20212022202320242025YoY
Total automotive revenues47,23271,46282,41977,07069,526-10%
Energy generation and storage revenue2,7893,9096,03510,08612,77127%
Services and other revenue3,8026,0918,31910,53412,53019%
Total revenues53,82381,46296,77397,69094,827-3%
Total gross profit13,60620,85317,66017,45017,094-2%
Total GAAP gross margin25.3%25.6%18.2%17.9%18.0%16 bp
Operating expenses7,0837,1978,76910,37412,73923%
Income from operations6,52313,6568,8917,0764,355-38%
Operating margin12.1%16.8%9.2%7.2%4.6%-265 bp
Adjusted EBITDA (1)11,72219,39016,63116,05614,596-9%
Adjusted EBITDA margin (1)21.8%23.8%17.2%16.4%15.4%-104 bp
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794-46%
Net income attributable to common stockholders (non-GAAP) (2)7,71914,27610,8827,9605,858-26%
EPS attributable to common stockholders, diluted (GAAP)1.633.624.302.041.08-47%
EPS attributable to common stockholders, diluted (non-GAAP) (2)2.284.123.122.291.66-28%
Net cash provided by operating activities11,49714,72413,25614,92314,747-1%
Capital expenditures (3)(6,514)(7,163)(8,899)(11,342)(8,527)-25%
Free cash flow (3)4,9837,5614,3573,5816,22074%
Cash, cash equivalents and investments17,70722,18529,09436,56344,05921%
+ +(1) Beginning in Q1'25, Adjusted EBITDA (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted. +(2) Beginning in Q1'25, Net income attributable to common stockholders (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted. +(3) Beginning in Q1'25, Capital expenditures is presented inclusive of purchases of energy generation and storage systems and all prior periods have been adjusted. + +OPERATIONAL SUMMARY +(Unaudited) + +
Q4-2024Q1-2025Q2-2025Q3-2025Q4-2025YoY
Model 3/Y production436,718345,454396,835435,826422,652-3%
Other models production22,72717,16113,40911,62411,706-48%
Total production459,445362,615410,244447,450434,358-5%
Model 3/Y deliveries471,930323,800373,728481,166406,585-14%
Other models deliveries23,64012,88110,39415,93311,642-51%
Total deliveries495,570336,681384,122497,099418,227-16%
of which subject to operating lease accounting26,96213,7216,67010,23010,996-59%
Cumulative $deliveries^{(1)}$ (all-time; mil)7.37.68.08.58.922%
Active FSD $Subscriptions^{(2)}$ (mil)0.80.80.91.01.138%
Total end of quarter operating lease (new vehicle) $count^{(3)}$ 180,523179,930172,882167,163163,075-10%
Global vehicle inventory (days of supply) $^{(4)}$ 122224101525%
Storage deployed (GWh)11.010.49.612.514.229%
Tesla locations1,3591,3901,4541,4981,55314%
Supercharger stations6,9757,1317,3777,7538,18217%
Supercharger connectors65,49567,31670,22873,81777,68219%
+ +OPERATIONAL SUMMARY +(Unaudited) + +
20212022202320242025YoY
Model 3/Y production906,0321,298,4341,775,1591,679,3381,600,767-5%
Other models production24,39071,17770,82694,10553,900-43%
Total production930,4221,369,6111,845,9851,773,4431,654,667-7%
Model 3/Y deliveries911,2421,247,1461,739,7071,704,0931,585,279-7%
Other models deliveries24,98066,70568,87485,13350,850-40%
Total deliveries936,2221,313,8511,808,5811,789,2261,636,129-9%
of which subject to operating lease accounting60,91247,58272,22660,00341,617-31%
Cumulative $deliveries^{(1)}$ (all-time; mil)2.33.75.57.38.922%
Active FSD $Subscriptions^{(2)}$ (mil)0.40.50.60.81.138%
Total end of year operating lease (new vehicle) count120,342140,667176,564180,523163,075-10%
Global vehicle inventory (days of supply) $^{(3)}$ 61616131515%
Storage deployed (GWh)4.06.514.731.446.749%
Tesla locations6449631,2081,3591,55314%
Supercharger stations3,4764,6785,9526,9758,18217%
Supercharger connectors31,49842,41954,89265,49577,68219%
+ + +# Automotive + +While automotive sales declined sequentially, gross margin (even when excluding the impact of regulatory credits) improved. The APAC region continued to show strength across multiple markets and set a record for deliveries in the quarter. We continued the rollout of Model Y variants across markets in Q4, including the standard and performance versions. + +Preparations continue in North America for the production ramps of Tesla Semi and Cybercab, both commencing 1H26, and production of the next-generation Roadster. + +# Energy generation and storage + +We achieved our highest quarterly energy storage deployments, driven by record Megapack deployments. Total gross profit rose, both sequentially and year-over-year, to a record \$1.1 billion, marking the fifth consecutive record quarter. We plan to begin Megapack 3 and Megablock production at Megafactory Houston in 2026. In 2025, our global Powerwall network supported more than 89,000 Virtual Power Plant events across over 1 million installed units, allowing homeowners to save over \$1 billion in electricity bills as Virtual Power Plant participation continues to scale rapidly. + +# Robotics + +We made further progress on the Optimus program in 2025. In Q1 of this year, we plan to unveil the Gen 3 version of Optimus, which will include major upgrades from version 2.5, including our latest hand design. The Gen 3 is our first design meant for mass production. Preparations are underway for the first production line, including supply chain readiness, with start of production planned before the end of 2026 and eventual planned capacity of 1 million robots per year. + +Installed Annual Manufacturing Capacity + +
RegionProductCapacityStatus
Automotive
CaliforniaModel 3 / Model Y>550,000Production
Model S / Model X100,000Production
ShanghaiModel 3 / Model Y>950,000Production
BerlinModel Y>375,000Production
TexasModel Y>250,000Production
Cybertruck>125,000Production
Cybercab-Tooling
NevadaTesla Semi-Tooling
TBDRoadster-Design development
Energy Generation and Storage
CaliforniaMegapack40 GWhProduction
NevadaPowerwall>6 GWhProduction
ShanghaiMegapack40 GWhProduction
TexasMegapack-Construction
Robotics
CaliforniaOptimus-Construction
+ +Installed capacity ≠ current production rate and there may be limitations discovered as production rates approach capacity. Production rates depend on a variety of factors, including equipment uptime, component supply, downtime related to factory upgrades, regulatory considerations and other factors. Construction includes factory and infrastructure buildout as well as tool installation. + + +# AI Training Compute + +We are currently building Cortex 2 at Gigafactory Texas to further increase our AI training compute capacity. In the first half of 2026, we plan to more than double the size of onsite compute in Texas (in terms of H100 equivalents). We aim to maximize capital efficiency by scaling training compute judiciously, including when the training backlog gets too long or in anticipation of greater demand from our engineers to support our AI-related offerings. + +# Battery + +Our lithium refinery commenced pilot production and is the first spodumene to lithium hydroxide refinery in North America, leveraging a simpler, cheaper and more environmentally friendly process. This refinery enables us to domestically produce critical minerals in support of energy storage, battery manufacturing and ultimately for EV growth. + +We have begun to produce battery packs for certain Model Ys with our 4680 cells, unlocking an additional vector of supply to help navigate increasingly complex supply chain challenges caused by trade barriers and tariff risks. We now produce dry-electrode for 4680 cells with both anode and cathode made in Austin. We expect both domestic cathode material in Texas and LFP lines in Nevada to begin production in 2026. + +# Other Supporting Infrastructure + +We continue to efficiently utilize our existing physical footprint in North America, with targeted augmentation to support the rollout of Robotaxi. While in the short-term, operational workstreams such as charging, cleaning and maintenance can be managed through our existing charging network, service centers and sales and delivery locations, we will have to add more capacity as the service expands. We added over 3,800 net new Supercharging stalls, growing the network 19% year-over-year. + +Installed Annual Capacity + +
RegionProductCapacityStatus
AI Training Compute
TexasCortex 1>100k H100eProduction
Cortex 2-Construction
Battery Manufacturing
NevadaLFP7 GWhEarly Ramp
Texas468040 GWhProduction
Cathode Materials10 GWhEarly Ramp
Lithium Refining30 GWhEarly Ramp
+ +Installed capacity ≠ current production rate and there may be limitations discovered as production rates approach capacity. Production rates depend on a variety of factors, including equipment uptime, component supply, downtime related to factory upgrades, regulatory considerations and other factors. Construction includes factory and infrastructure buildout as well as tool installation. + +![](images/c5419b096d319ebffb59e266e803a4f96d687486c0d5acf1ddbd4ac05c322704.jpg) +Tesla AI Training Capacity Ramp (H100 equivalent GPUs) + + +# AI Software + +We continue to enhance FSD (Supervised) $^{1}$ via our end-to-end foundation model trained on both customer and Robotaxi real-world data with our latest version, v14. FSD (Supervised) $^{1}$ increasingly provides safety and convenience functionality that can relieve drivers of many tedious and potentially dangerous aspects of road travel, including giving access to personal transport for those who otherwise have difficulty driving. V14 offers unparalleled driver assistance to safely drive to the customer's destination, find a free parking spot and park at that location. Our global fleet can collect the equivalent of over 500 years of continuous driving data per day $^{2}$ , allowing us to safely deploy and scale capabilities that can handle the long and fat tail of corner cases across diverse geographies and driving environments. + +# AI Inference Compute + +Development of our in-house, custom designed AI5 and AI6 inference chips for autonomy progressed during the quarter, with production planned for 2027 and 2028, respectively. We are targeting a 50x improvement in performance for AI5 relative to AI4 thanks to 10x raw compute, 9x memory capacity and 5x hardened block quantization and softmax function (the latter enabling efficient low-precision computing without sacrificing model accuracy). + +# Automotive and Other Software + +The Robotaxi iOS app no longer has a waitlist in the areas we serve. Our vehicles keep getting better with our over-the-air updates, including: Grok (an AI companion) which now supports navigation commands (allowing users to find, add and edit navigation destinations hands-free); Tesla Photobooth which enables users to take photos in their car and download or share via the Tesla mobile app; Supercharger Site Maps which displays Supercharger layouts, nearby businesses and live availability details; Automatic HOV Lane Routing based on interior camera occupancy detection; Phone Left Behind Chime and SpaceX ISS Docking Simulator Game. + +![](images/9f4063992747fdc3132e661986a68e701bee9186c21a5a3fde658ed89f9e81e6.jpg) + +Cumulative Miles Driven with FSD (Supervised) $^{1}$ (billions) +![](images/48fc2d9f835f11c1f7727e32e63c14619355a55be1227aa504a3bc4c8fb80df7.jpg) +Targeting Step-Function Improvement for our Next-Generation Inference Chip, AI5 + +(1) Active driver supervision required; does not make the vehicle autonomous +(2) Calculated based on continuous hours of driving at an average of 30 miles per hour + +# Robotaxi + +We began testing driverless Robotaxis in Austin in December and began removing the safety monitor from customer rides in January on a limited basis, which will unlock further expansion of our Robotaxi fleet and coverage area in the Austin-metro. Our Bay Area ride-hailing service began serving the San Jose Airport in October, with plans to expand to other major airports in the Bay Area upon receiving required permitting. + +# FSD (Supervised) $^{1}$ + +We launched FSD (Supervised) $^{1}$ in South Korea, where customers drove over 1 million kilometers using the software in just one month. While we continue to pursue regulatory approval in China and Europe, we began offering ride-along experiences to consumers in Italy, Germany, France and Switzerland. + +Monthly subscriptions to FSD (Supervised) $^{1}$ continued to grow sequentially and more than doubled in 2025. Starting this quarter, we are transitioning access to FSD (Supervised) $^{1}$ to monthly subscriptions only as we begin to sunset the up-front payment option. + +# Automotive Services + +Services and Other gross profit of approximately \$300 million was partly driven by Part Sales and Supercharging. We now offer Tesla Insurance in Florida, as we continue to expand our insurance product to new states. In certain states, customers receive a discount on their insurance premiums when using FSD (Supervised) $^{1}$ . The more you drive with FSD (Supervised) $^{1}$ enabled, the bigger the discount is on your insurance premium – helping, in certain cases, to completely offset the monthly subscription cost for FSD (Supervised) $^{1}$ . + +![](images/0988c8ad6fe18ff5072a2abf6a77a630f3902fcc1d80846fbf065e7811b99e87.jpg) + +Cumulative Paid Robotaxi Miles + +
StateMetroStatus
CaliforniaSF Bay AreaSafety Driver
TexasAustinRamping Unsupervised
Dallas1H 2026
Houston1H 2026
ArizonaPhoenix1H 2026
FloridaMiami1H 2026
Orlando1H 2026
Tampa1H 2026
NevadaLas Vegas1H 2026
+ +Planned Robotaxi Coverage + + +# OTHER UPDATES + +On January 16, 2026, Tesla entered into an agreement to invest approximately \$2 billion to acquire shares of Series E Preferred Stock of xAI as part of their recent publicly-disclosed financing round. Tesla’s investment was made on market terms consistent with those previously agreed to by other investors in the financing round. As set forth in Master Plan Part IV, Tesla is building products and services that bring AI into the physical world. Meanwhile, xAI is developing leading digital AI products and services, such as its large language model (Grok). + +In that context, and as part of Tesla's broader strategy under Master Plan Part IV, Tesla and xAI also entered into a framework agreement in connection with the investment. Among other things, the framework agreement builds upon the existing relationship between Tesla and xAI by providing a framework for evaluating potential AI collaborations between the companies. Together, the investment and the related framework agreement are intended to enhance Tesla's ability to develop and deploy AI products and services into the physical world at scale. This investment is subject to customary regulatory conditions with the expectation to close in Q1'2026. + + +# OUTLOOK + +# Volume + +We are focused on maximum capacity utilization at our factories. Deliveries and deployments will be impacted by aggregate demand for our products, supply chain readiness and allocation decisions between sale to customers or use for our owned and operated fleet. + +# Cash + +We will manage the businesses such that we ensure a strong balance sheet, maintaining sufficient liquidity to fund our product roadmap, long-term capacity expansion plans – including further vertical integration – and other expenses. + +# Profit + +While we continue to execute on innovations to reduce the cost of manufacturing and operations, over time, we expect our hardware-related profits to be accompanied by an acceleration of AI, software and fleet-based profits. + +# Product + +We continue to evolve and augment our product lineup with a focus on cost, scale and future monetization opportunities via services powered by our AI software. We remain focused on growing our sales volumes through a differentiated and efficiently managed product portfolio, which includes leveraging and optimizing our existing production capacity before building new factories and production lines. + +Cybercab, Tesla Semi and Megapack 3 are on schedule for volume production starting in 2026. First generation production lines for Optimus are being installed in anticipation of volume production. + + +PHOTOS & CHARTS + + +# MODEL Y - 2025 BEST IN CLASS EURO NCAP $^{(1)}$ SMALL SUV + +![](images/158a8cd9950de369e065221dc0e852dbc1e830dc0f883a496bd9be77d6029db3.jpg) + + +# MODEL 3 - 2025 BEST IN CLASS EURO NCAP $^{(1)}$ LARGE FAMILY CAR + +![](images/07ce9a96f3e5d92fa1641b00312412b3deaf22189aa8904659176fa2bcd62e75.jpg) + + +# FSD (SUPERVISED) $^{1}$ – V14 OFFERS UNPARALLELED DRIVER ASSISTANCE + +![](images/b1f1448eab61493236c1530fcc2c05a7365b9ef91af9be38d3faf74ec71b5ae9.jpg) + + +# DRIVERLESS ROBOTAXI - TESTING IN AUSTIN + +![](images/cda4f95399f8a58b55750a199bb9434e1b7806478b1ca775e4c7c0737656b5de.jpg) + + +# CYBERCAB - COLD WEATHER TESTING IN ALASKA + +![](images/d4e7263d8fb8951d59a0c80292c412f4b75d36fb36a35fe058140095dddfbce1.jpg) + +![](images/ade7e435748c90f4f859d0d36b9856e2ba25bcb3de67e173f6a38e70039d9c2c.jpg) + + +TESLA SEMI - MEGACHARGER NETWORK PLANNED SITES FOR 2026 +![](images/8e2b663e678f56be153dc891d3913f90ed7e90060ca0b164434d28336d2c8820.jpg) + + +# GIGAFACTORY SHANGHAI - 9 MILLIONTH VEHICLE PRODUCED (GLOBALLY) + +![](images/0ec324caa888be92ff136948d030c18f5dba98b8d91fcdfe7a3a6f6f5b8660af.jpg) + + +# GIGAFACTORY NEVADA - 6 MILLIONTH DRIVE UNIT PRODUCED + +![](images/960786f1a7ef3448079eafcc69ce08cef09109fa0577b30c08f8fda23c394483.jpg) + +![](images/920fc64098ae7b1ce10f289ec9513682e5581ac225922fd4b75ba9c45125a352.jpg) + +![](images/1e7cdefaaf215c38ac82a80e892bd3bb9f87b0b2dfc423b6ec2e3525fb99d11f.jpg) + +![](images/afc60e5cf57f455cd6fa8ffafb95cb736170fcaef6b76d4e10c394bf81cb7849.jpg) + + +# KEY METRICS TRAILING 12 MONTHS (TTM) (Unaudited) + +![](images/12044b68a9c0ec6bd1c5e10a65a295f2ca643bce67aff18015086f71bfc4a5e7.jpg) + +![](images/a701d35afba0dcc13ebd0a273857f53b6c616039fae2341a2b927075ac37f64e.jpg) + +![](images/ff5078d01c1a41d45496ab1b851b69109387b3f2b158681ce7b326707f6716ba.jpg) + + +# Revenue + +Total quarterly revenue decreased 3% YoY to \$24.9B. YoY, revenue was impacted by the following items $^{(1)}$ : + +- decrease in vehicle deliveries +- lower regulatory credit revenue ++ growth in Energy Generation and Storage ++ growth in Services and Other ++ positive FX impact of \$0.3B $^{1}$ + +\+ growth in other automotive ancillary sales, partly driven by an increase in FSD subscriptions + +\+ higher vehicle average selling price (ASP) (excl. FX impact $^{1}$ ), inclusive of mix impact + +# Profitability + +Our quarterly operating income decreased 11% YoY to \$1.4B, resulting in a 5.7% operating margin. YoY, operating income was primarily impacted by the following items $^{(1)}$ : + +- increase in SBC and Restructuring and Other charges +- increase in operating expenses (excl. SBC and Restructuring and Other) driven by AI and other R&D projects and SG&A +- higher average cost per vehicle due to lower fixed cost absorption for certain models and an increase in tariffs +- decrease in vehicle deliveries +- lower regulatory credit revenue ++ higher vehicle average gross profit due to mix and pricing impacts ++ growth in Energy Generation and Storage gross profit ++ growth in Services and Other gross profit ++ growth in other automotive ancillary sales, partly driven by an increase in FSD subscriptions + +# Cash + +Quarter-end cash, cash equivalents and investments was \$44.1B. The sequential increase of \$2.4B was primarily the result of positive free cash flow. + + +# FINANCIAL STATEMENTS + +STATEMENT OF OPERATIONS +(Unaudited) + +
In millions of USD or shares as applicable, except per share dataQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
REVENUES
Automotive sales18,65912,92515,78720,35916,750
Automotive regulatory credits692595439417542
Automotive leasing447447435429401
Total automotive revenues19,79813,96716,66121,20517,693
Energy generation and storage3,0612,7302,7893,4153,837
Services and other2,8482,6383,0463,4753,371
Total revenues25,70719,33522,49628,09524,901
COST OF REVENUES
Automotive sales16,26811,46113,56717,36513,874
Automotive leasing242239228225206
Total automotive cost of revenues16,51011,70013,79517,59014,080
Energy generation and storage2,2891,9451,9432,3422,739
Services and other2,7292,5372,8803,1093,073
Total cost of revenues21,52816,18218,61823,04119,892
Gross profit4,1793,1533,8785,0545,009
OPERATING EXPENSES
Research and development1,2761,4091,5891,6301,783
Selling, general and administrative1,3131,2511,3661,5621,655
Restructuring and other794238162
Total operating expenses2,5962,7542,9553,4303,600
INCOME FROM OPERATIONS1,5833999231,6241,409
Interest income442400392439449
Interest expense(96)(91)(86)(76)(85)
Other income (expense), net (1)595(119)320(28)(592)
INCOME BEFORE INCOME TAXES (1)2,5245891,5491,9591,181
Provision for income taxes (1)381169359570325
NET INCOME (1)2,1434201,1901,389856
Net income attributable to noncontrolling interests and redeemable noncontrolling interests in subsidiaries1511181616
NET INCOME ATTRIBUTABLE TO COMMON STOCKHOLDERS (1)2,1284091,1721,373840
Less: Buy-out of noncontrolling interest3
NET INCOME USED IN COMPUTING NET INCOME PER SHARE OF COMMON STOCK (1)2,1254091,1721,373840
Net income per share of common stock attributable to common stockholders
Basic (1)$ 0.66$ 0.13$ 0.36$ 0.43$ 0.26
Diluted (1)$ 0.60$ 0.12$ 0.33$ 0.39$ 0.24
Weighted average shares used in computing net income per share of common stock
Basic3,2133,2183,2233,2273,231
Diluted3,5173,5213,5193,5263,539
+ +BALANCE SHEET +(Unaudited) + +
In millions of USD31-Dec-2431-Mar-2530-Jun-2530-Sep-2531-Dec-25
ASSETS
Current assets
Cash, cash equivalents and investments36,56336,99636,78241,64744,059
Accounts receivable, net4,4183,7823,8384,7034,576
Inventory12,01713,70614,57012,27612,392
Prepaid expenses and other current assets5,3624,9055,9436,0277,615
Total current assets58,36059,38961,13364,65368,642
Operating lease vehicles, net5,5815,4775,2305,0194,912
Energy generation and storage systems, net4,9244,8554,7884,6734,604
Property, plant and equipment, net35,83637,08838,57439,40740,643
Operating lease right-of-use assets5,1605,3305,6335,7836,027
Digital assets (2)1,0769511,2351,3151,008
Deferred tax assets (2)6,5246,6876,7216,6376,925
Other non-current assets4,6095,3345,2536,2485,045
Total assets (2)122,070125,111128,567133,735137,806
LIABILITIES AND EQUITY
Current liabilities
Accounts payable12,47413,47113,21212,81913,371
Accrued liabilities and other10,72310,80211,51912,79113,279
Deferred revenue3,1683,2433,2373,7563,424
Current portion of debt and finance leases (1)2,4562,2372,0401,9241,640
Total current liabilities28,82129,75330,00831,29031,714
Debt and finance leases, net of current portion (1)5,7575,2925,1805,7786,736
Deferred revenue, net of current portion3,3173,6103,7643,7463,631
Other long-term liabilities10,49511,03811,54312,20512,860
Total liabilities48,39049,69350,49553,01954,941
Redeemable noncontrolling interests in subsidiaries6362615958
Total stockholders' equity (2)72,91374,65377,31479,97082,137
Noncontrolling interests in subsidiaries704703697687670
Total liabilities and equity (2)122,070125,111128,567133,735137,806
(1) Breakdown of our debt is as follows:
Non-recourse debt7,8717,2386,9537,4588,150
Recourse debt76333
Days sales outstanding1419151417
Days payable outstanding5872655261
+ +STATEMENT OF CASH FLOWS +(Unaudited) + +
In millions of USDQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
CASH FLOWS FROM OPERATING ACTIVITIES
Net income (1)2,1434201,1901,389856
Adjustments to reconcile net income to net cash provided by operating activities:
Depreciation, amortization and impairment1,4961,4471,4331,6251,643
Stock-based compensation579573635663954
Deferred income taxes (1)6(43)52225(111)
Digital assets (gain) loss, net (1)(347)125(284)(80)307
Other(93)188187333378
Changes in operating assets and liabilities1030(554)(673)2,083(214)
Net cash provided by operating activities4,8142,1562,5406,2383,813
CASH FLOWS FROM INVESTING ACTIVITIES
Capital expenditures (2)(2,780)(1,492)(2,394)(2,248)(2,393)
Purchases of investments(15,158)(6,015)(7,485)(11,402)(12,207)
Proceeds from maturities of investments10,3355,8566,9359,2958,072
Net cash used in investing activities(7,603)(1,651)(2,944)(4,355)(6,528)
CASH FLOWS FROM FINANCING ACTIVITIES
Net cash flows from other debt activities(108)(50)(23)410963
Net borrowings (repayments) under vehicle and energy product financing677(674)(400)81(377)
Net cash flows from noncontrolling interests – Solar(37)(22)(14)(20)(22)
Other453414215512146
Net cash provided by (used in) financing activities985(332)(222)983710
Effect of exchange rate changes on cash and cash equivalents and restricted cash(133)40111(17)37
Net (decrease) increase in cash and cash equivalents and restricted cash(1,937)213(515)2,849(1,968)
Cash and cash equivalents and restricted cash at beginning of period18,97417,03717,25016,73519,584
Cash and cash equivalents and restricted cash at end of period17,03717,25016,73519,58417,616
+ +RECONCILIATION OF GAAP TO NON-GAAP FINANCIAL INFORMATION (Unaudited) + +
In millions of USD or shares as applicable, except per share dataQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840
Stock-based compensation expense, net of tax249428443459682
Digital assets (gain) loss, net of tax (1)(270)97(222)(62)239
Net income attributable to common stockholders (non-GAAP) (1) (2)2,1079341,3931,7701,761
Less: Buy-outs of noncontrolling interests3
Net income used in computing diluted EPS attributable to common stockholders (non-GAAP) (1) (2)2,1049341,3931,7701,761
EPS attributable to common stockholders, diluted (GAAP) (1)0.600.120.330.390.24
Stock-based compensation expense, net of tax, per share0.080.120.130.130.19
Digital assets (gain) loss, net of tax, per share (1)(0.08)0.03(0.06)(0.02)0.07
EPS attributable to common stockholders, diluted (non-GAAP) (1) (2)0.600.270.400.500.50
Shares used in EPS calculation, diluted (GAAP and non-GAAP)3,5173,5213,5193,5263,539
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840
Interest expense9691867685
Provision for income taxes (1)381169359570325
Depreciation, amortization and impairment1,4961,4471,4331,6251,643
Stock-based compensation expense579573635663954
Digital assets (gain) loss, net (1)(347)125(284)(80)307
Adjusted EBITDA (non-GAAP) (1) (3)4,3332,8143,4014,2274,154
Total revenues25,70719,33522,49628,09524,901
Adjusted EBITDA margin (non-GAAP) (1) (3)16.9%14.6%15.1%15.0%16.7%
Automotive gross margin (GAAP)16.6%16.2%17.2%17.0%20.4%
Less: Total regulatory credit revenue recognized3.0%3.7%2.2%1.6%2.5%
Automotive gross margin excluding regulatory credit sales (non-GAAP)13.6%12.5%15.0%15.4%17.9%
+ +RECONCILIATION OF GAAP TO NON-GAAP FINANCIAL INFORMATION +(Unaudited) + +
In millions of USD or shares as applicable, except per share data20212022202320242025
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794
Stock-based compensation expense, net of tax2,1211,5601,8121,3282,012
Digital assets loss (gain), net of tax79160(459)52
Release of valuation allowance on deferred tax assets(5,927)
Net income attributable to common stockholders (non-GAAP)(1)7,71914,27610,8827,9605,858
Less: Buy-outs of noncontrolling interests(5)(27)(2)(39)
Less: Dilutive convertible debt(9)(1)
Net income used in computing diluted EPS attributable to common stockholders (non-GAAP)(1)7,73314,30410,8847,9995,858
EPS attributable to common stockholders, diluted (GAAP)1.633.624.302.041.08
Stock-based compensation expense, net of tax, per share0.630.450.520.380.57
Digital assets loss (gain), net of tax, per share0.020.05(0.13)0.01
Release of valuation allowance on deferred tax assets(1.70)
EPS attributable to common stockholders, diluted (non-GAAP)(1)2.284.123.122.291.66
Shares used in EPS calculation, diluted (GAAP and non-GAAP)3,3863,4753,4853,4983,528
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794
Interest expense371191156350338
Provision for (benefit from) income taxes6991132(5,001)1,8371,423
Depreciation, amortization and impairment2,9113,7474,6675,3686,148
Stock-based compensation expense2,1211,5601,8121,9992,825
Digital assets loss (gain), net101204(589)68
Adjusted EBITDA (non-GAAP)(2)11,72219,39016,63116,05614,596
Total revenues53,82381,46296,77397,69094,827
Adjusted EBITDA margin (non-GAAP)(2)21.8%23.8%17.2%16.4%15.4%
Automotive gross margin (GAAP)29.3%28.5%19.4%18.4%17.8%
Less: Total regulatory credit revenue recognized2.3%1.8%1.7%3.0%2.4%
Automotive gross margin excluding regulatory credit sales (non-GAAP)27.0%26.7%17.7%15.4%15.4%
+ +RECONCILIATION OF GAAP TO NON-GAAP FINANCIAL INFORMATION +(Unaudited) + +
In millions of USD2Q-20223Q-20224Q-20221Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-2025
Net cash provided by operating activities (GAAP)2,3515,1003,2782,5133,0653,3084,3702423,6126,2554,8142,1562,5406,2383,813
Capital expenditures (1)(1,730)(1,803)(1,858)(2,073)(2,060)(2,459)(2,307)(2,777)(2,272)(3,513)(2,780)(1,492)(2,394)(2,248)(2,393)
Free cash flow (non-GAAP) (1)6213,2971,4204401,0058492,063(2,535)1,3402,7422,0346641463,9901,420
In millions of USD2Q-20223Q-20224Q-20221Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20 252Q-20253Q-20254Q-2025
Net income attributable to common stockholders (GAAP) (2)2,2593,2923,6872,5132,7031,8537,9281,3901,4002,1732,1284091,1721,373840
Interest expense445333292838617686929691867685
Provision for (benefit from) income taxes (2)205305276261323167(5,752)483371602381169359570325
Depreciation, amortization and impairment9229569891,0461,1541,2351,2321,2461,2781,3481,4961,4471,4331,6251,643
Stock-based compensation expense361362419418445465484524439457579573635663954
Digital assets loss (gain), net (2)17034(335)100(7)(347)125(284)(80)307
Adjusted EBITDA (non-GAAP) (2) (3)3,9614,9685,4384,2674,6533,7583,9533,3843,6744,6654,3332,8143,4014,2274,154
+ +
In millions of USD1Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-2025
Net cash provided by operating activities – TTM (GAAP)13,24213,95612,16413,25610,98511,53214,47914,92316,83715,76515,74814,747
Capital expenditures – TTM (1)(7,464)(7,794)(8,450)(8,899)(9,603)(9,815)(10,869)(11,342)(10,057)(10,179)(8,914)(8,527)
Free cash flow – TTM (non-GAAP) (1)5,7786,1623,7144,3571,3821,7173,6103,5816,7805,5866,8346,220
In millions of USD1Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-20
Net income attributable to common stockholders – TTM (GAAP) (2)11,75112,19510,75614,99713,87412,57112,8917,0916,1105,8825,0823,794
Interest expense – TTM159143128156203261315350365365349338
Provision for (benefit from) income taxes – TTM (2)1,0471,1651,027(5,001)(4,779)(4,731)(4,296)1,8371,5231,5111,4791,423
Depreciation, amortization and impairment – TTM3,9134,1454,4244,6674,8674,9915,1045,3685,5695,7246,0016,148
Stock-based compensation expense – TTM1,5601,6441,7471,8121,9181,9121,9041,9992,0482,2442,4502,825
Digital assets loss (gain), net – TTM (2)2043434(335)(235)(242)(589)(129)(513)(586)68
Adjusted EBITDA – TTM (non-GAAP) (2) (3)18,63419,32618,11616,63115,74814,76915,67616,05615,48615,21314,77514,596
+ +TTM = Trailing twelve months +(1) Beginning in Q1'25, Capital expenditures is presented inclusive of purchases of energy generation and storage systems and all prior periods have been adjusted. +(2) As a result of the adoption of the new crypto assets standard, the previously reported quarterly periods in 2024 have been recast. +(3) Beginning in Q1'25, Adjusted EBITDA (non-GAAP) is presented net of digital assets gains and losses and all prior periods have been adjusted. + + +# WEBCAST INFORMATION + +Tesla will provide a live webcast of its fourth quarter 2025 financial results conference call beginning at 4:30 p.m. CT on January 28, 2026 at ir.tesla.com. This webcast will also be available for replay for approximately one year thereafter. + +# CERTAIN TERMS + +When used in this update, certain terms have the following meanings. Our vehicle deliveries include only vehicles that have been transferred to end customers with all paperwork correctly completed. Our energy product deployment volume includes both customer units when installed and equipment sales at time of delivery. "Net income attributable to common stockholders (non-GAAP)" is equal to (i) net income attributable to common stockholders before (ii)(a) stock-based compensation expense, net of tax, (b) digital assets (gain) loss, net of tax and (c) release of valuation allowance on deferred tax assets. "Adjusted EBITDA (non-GAAP)" is equal to (i) net income attributable to common stockholders before (ii)(a) interest expense, (b) provision for (benefit from) income taxes, (c) depreciation, amortization and impairment, (d) stock-based compensation expense and (e) digital assets loss (gain), net. "Free cash flow" is operating cash flow less capital expenditures. Average cost per vehicle is cost of automotive sales divided by new vehicle deliveries (excluding operating leases). "Days sales outstanding" is equal to (i) average accounts receivable, net for the period divided by (ii) total revenues and multiplied by (iii) the number of days in the period. "Days payable outstanding" is equal to (i) average accounts payable for the period divided by (ii) total cost of revenues and multiplied by (iii) the number of days in the period. "Days of supply" is calculated by dividing new car ending inventory by the relevant period's deliveries and using trading days. Constant currency impacts are calculated by comparing actuals against current results converted into USD using average exchange rates from the prior period. + +# NON-GAAP FINANCIAL INFORMATION + +Consolidated financial information has been presented in accordance with GAAP as well as on a non-GAAP basis to supplement our consolidated financial results. Our non-GAAP financial measures include non-GAAP net income (loss) attributable to common stockholders, non-GAAP net income (loss) attributable to common stockholders on a diluted per share basis (calculated using weighted average shares for GAAP diluted net income (loss) attributable to common stockholders), Adjusted EBITDA margin, non-GAAP automotive gross margin and free cash flow. These non-GAAP financial measures also facilitate management's internal comparisons to Tesla's historical performance as well as comparisons to the operating results of other companies. Management believes that it is useful to supplement its GAAP financial statements with this non-GAAP information because management uses such information internally for its operating, budgeting and financial planning purposes. Management also believes that presentation of the non-GAAP financial measures provides useful information to our investors regarding our financial condition and results of operations, so that investors can see through the eyes of Tesla management regarding important financial metrics that Tesla uses to run the business and allowing investors to better understand Tesla's performance. Non-GAAP information is not prepared under a comprehensive set of accounting rules and therefore, should only be read in conjunction with financial information reported under U.S. GAAP when understanding Tesla's operating performance. A reconciliation between GAAP and non-GAAP financial information is provided above. + +# FORWARD-LOOKING STATEMENTS + +Certain statements in this update, including, but not limited to, statements in the “Outlook” section; statements relating to the development, strategy, ramp, production and capacity, demand and market growth, cost, pricing and profitability, investment, deliveries, deployment, availability and other features and improvements and timing of existing and future Tesla products and services and supporting infrastructure; statements regarding operating margin, operating profits, spending and liquidity; and statements regarding expansion, improvements and/or ramp and related timing at our facilities are “forward-looking statements” within the meaning of the Private Securities Litigation Reform Act of 1995. Forward-looking statements are based on assumptions and management’s current expectations, involve certain risks and uncertainties, and are not guarantees. Future results may differ materially from those expressed in any forward-looking statement. The following important factors, without limitation, could cause actual results to differ materially from those in the forward-looking statements: the risk of delays in launching and/or manufacturing our products, services and features cost-effectively; our ability to build and/or grow our products and services, sales, delivery, installation, servicing and charging capabilities and effectively manage this growth; our ability to successfully and timely develop, introduce and scale, as well as our consumers’ demand for, products and services based on artificial intelligence, robotics and automation, electric vehicles, advanced driver assistance systems, and ride-hailing services generally and our vehicles and services specifically; the ability of suppliers to deliver components according to schedules, prices, quality and volumes acceptable to us, and our ability to manage such components effectively; any issues with lithium-ion cells or other components manufactured at our factories; our ability to ramp our factories in accordance with our plans; our ability to procure supply of battery cells, including through our own manufacturing; risks relating to international operations and expansion, including unfavorable and uncertain regulatory, political, economic, tax, tariff, export controls and labor conditions; any failures by Tesla products to perform as expected or if product recalls occur; the risk of product liability claims; competition in the automotive, transportation and energy product and services and robotics markets; our ability to maintain public credibility and confidence in our long-term business prospects; our ability to manage risks relating to our various product financing programs; the status of government and economic incentives for electric vehicles and energy products; our ability to attract, hire and retain key employees and qualified personnel; our ability to maintain the security of our information and production and product systems; our compliance with various regulations and laws applicable to our operations and products, which may evolve from time to time; risks relating to our indebtedness and financing strategies; and adverse foreign exchange movements. More information on potential factors that could affect our financial results is included from time to time in our Securities and Exchange Commission filings and reports, including the risks identified under the section captioned “Risk Factors” in our annual report on Form 10-K filed with the SEC on January 30, 2025 and subsequent quarterly reports on Form 10-Q. Tesla disclaims any obligation to update information contained in these forward-looking statements whether as a result of new information, future events or otherwise. + +TESLA \ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-1-Capacity Growth Projection.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-1-Capacity Growth Projection.jpg new file mode 100644 index 000000000..47856b7e8 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-1-Capacity Growth Projection.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-10-Tesla Semi Trucks.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-10-Tesla Semi Trucks.jpg new file mode 100644 index 000000000..0128b0885 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-10-Tesla Semi Trucks.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-11-US Lightning Map.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-11-US Lightning Map.jpg new file mode 100644 index 000000000..97b7550c1 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-11-US Lightning Map.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-12-Tesla Factory Milestone.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-12-Tesla Factory Milestone.jpg new file mode 100644 index 000000000..68ffca651 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-12-Tesla Factory Milestone.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-13-Tesla Factory Milestone.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-13-Tesla Factory Milestone.jpg new file mode 100644 index 000000000..07396b797 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-13-Tesla Factory Milestone.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-14-Vehicle Delivery Trends.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-14-Vehicle Delivery Trends.jpg new file mode 100644 index 000000000..a84014a9f Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-14-Vehicle Delivery Trends.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-15-Quarterly Cash Flow.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-15-Quarterly Cash Flow.jpg new file mode 100644 index 000000000..7a06aebf3 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-15-Quarterly Cash Flow.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-16-Financial Performance Chart.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-16-Financial Performance Chart.jpg new file mode 100644 index 000000000..42e9b155e Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-16-Financial Performance Chart.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-17-Projected Vehicle Deliveries.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-17-Projected Vehicle Deliveries.jpg new file mode 100644 index 000000000..e669bbc15 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-17-Projected Vehicle Deliveries.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-18-Cash Flow Trends.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-18-Cash Flow Trends.jpg new file mode 100644 index 000000000..99b8f2700 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-18-Cash Flow Trends.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-19-Financial Performance Forecast.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-19-Financial Performance Forecast.jpg new file mode 100644 index 000000000..3a28a0165 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-19-Financial Performance Forecast.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-2-FSD Mileage Growth.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-2-FSD Mileage Growth.jpg new file mode 100644 index 000000000..c40682061 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-2-FSD Mileage Growth.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-3-Tesla Silicon Optimization.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-3-Tesla Silicon Optimization.jpg new file mode 100644 index 000000000..7f9eea688 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-3-Tesla Silicon Optimization.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-4-Growth Trend 2025.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-4-Growth Trend 2025.jpg new file mode 100644 index 000000000..ace450520 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-4-Growth Trend 2025.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-5-Tesla Model Y Driving.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-5-Tesla Model Y Driving.jpg new file mode 100644 index 000000000..386ada071 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-5-Tesla Model Y Driving.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-6-Red Tesla on Coastal Road.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-6-Red Tesla on Coastal Road.jpg new file mode 100644 index 000000000..c84f0be23 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-6-Red Tesla on Coastal Road.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-7-Tesla Interior Interface.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-7-Tesla Interior Interface.jpg new file mode 100644 index 000000000..03b5e639c Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-7-Tesla Interior Interface.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-8-Tesla Interior.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-8-Tesla Interior.jpg new file mode 100644 index 000000000..a24acf918 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-8-Tesla Interior.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-9-Tesla Cybertruck in Snow.jpg b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-9-Tesla Cybertruck in Snow.jpg new file mode 100644 index 000000000..3a30afeef Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/images/image-9-Tesla Cybertruck in Snow.jpg differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/manifest.json b/apps/api/app/data/demo_documents/tsla-q4-2025/manifest.json new file mode 100644 index 000000000..642fadb61 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/manifest.json @@ -0,0 +1,30 @@ +{ + "version": "2.0", + "job_id": "job_b7886be54d96", + "data_id": null, + "source_file_name": "TSLA-Q4-2025-Update.pdf", + "processing_date": "2026-05-12T02:42:26.779662Z", + "processing": { + "page_count": 35, + "billing_status": "charged", + "cost": { + "micro_dollars": 52500, + "credits": 0.0525 + }, + "timing": { + "started_at": "2026-05-12T02:41:42.463885+00:00", + "completed_at": "2026-05-12T02:42:26.292306+00:00", + "duration_ms": 43828 + } + }, + "statistics": { + "total_chunks": 70, + "text_chunks": 36, + "image_chunks": 19, + "table_chunks": 15, + "total_pages": null + }, + "HIERARCHY": { + "Root": {} + } +} \ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/original.pdf b/apps/api/app/data/demo_documents/tsla-q4-2025/original.pdf new file mode 100644 index 000000000..87cdb1be5 Binary files /dev/null and b/apps/api/app/data/demo_documents/tsla-q4-2025/original.pdf differ diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-0 Tesla 2025 Results.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-0 Tesla 2025 Results.html new file mode 100644 index 000000000..459a4b394 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-0 Tesla 2025 Results.html @@ -0,0 +1 @@ +
Profitability$4.4B GAAP operating income in 2025; $1.4B in Q42025 marked a critical year for Tesla as we further expanded our mission and continued our transition from a hardware-centric business to a physical AI company. We laid the foundation for the future of Tesla as we further advanced FSD (Supervised) $^{4}$ , launched our Robotaxi service, began installing production lines for Cybercab and fine-tuned our production-primed Optimus design while expanding our AI training infrastructure.
$3.8B GAAP net income in 2025; $0.8B in Q4
$5.9B non-GAAP net income $^{1}$ in 2025; $1.8B in Q4
CashOperating cash flow of $14.7B in 2025; $3.8B in Q4Our approach to autonomous vehicles and humanoid robots mirrors the way we approached electric vehicles and energy storage – at the system level where we identify the limiting factor and develop bespoke and scalable solutions (batteries, power electronics, inverters, software, AI silicon, etc.) to optimize for cost, functionality, efficiency and safety. Our vertical integration has enabled us to achieve economies of scale in a profitable manner, quickly troubleshoot bottlenecks in production and iteratively optimize our technologies more rapidly than others.
Free cash flow $^{2}$ of $6.2B in 2025; $1.4B in Q4In 2025, we completed the refresh of our vehicle lineup with the launch of the new Model Y, including additional variants. We believe that maintaining an optimized and efficient product portfolio, with a continued focus on high-value features such as long range, best-in-class software and autonomy, is the correct strategy to win the autos market of the future. Similarly, we continued to evolve our energy offerings for commercial, utility and retail customers, as we position ourselves as a supplier of choice for clean, affordable and rapidly deployable energy capacity ahead of expected sustained demand growth for electricity.
$7.5B increase in our cash and investments $^{3}$ in 2025 to $44.1B
OperationsBegan removing safety monitor from our Robotaxis in Austin in JanuaryIn 2026, we will further invest in the infrastructure needed to support clean energy and transport and autonomous robots, including the ramp of six new production lines across vehicle, robots, energy storage and battery manufacturing, while further leveraging our existing factory, charging and service center footprint to support future growth.
Record Q4 & FY'25 energy storage deployments
Record vehicle deliveries in APAC
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-1 Q4 2025 Financials.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-1 Q4 2025 Financials.html new file mode 100644 index 000000000..c2da74ef2 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-1 Q4 2025 Financials.html @@ -0,0 +1 @@ +
($ in millions, except percentages and per share data)Q4-2024Q1-2025Q2-2025Q3-2025Q4-2025YoY
Total automotive revenues19,79813,96716,66121,20517,693-11%
Energy generation and storage revenue3,0612,7302,7893,4153,83725%
Services and other revenue2,8482,6383,0463,4753,37118%
Total revenues25,70719,33522,49628,09524,901-3%
Total gross profit4,1793,1533,8785,0545,00920%
Total GAAP gross margin16.3%16.3%17.2%18.0%20.1%386 bp
Operating expenses2,5962,7542,9553,4303,60039%
Income from operations1,5833999231,6241,409-11%
Operating margin6.2%2.1%4.1%5.8%5.7%-50 bp
Adjusted EBITDA (1) (2)4,3332,8143,4014,2274,154-4%
Adjusted EBITDA margin (1) (2)16.9%14.6%15.1%15.0%16.7%-17 bp
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840-61%
Net income attributable to common stockholders (non-GAAP) (1) (3)2,1079341,3931,7701,761-16%
EPS attributable to common stockholders, diluted (GAAP) (1)0.600.120.330.390.24-60%
EPS attributable to common stockholders, diluted (non-GAAP) (1) (3)0.600.270.400.500.50-17%
Net cash provided by operating activities4,8142,1562,5406,2383,813-21%
Capital expenditures (4)(2,780)(1,492)(2,394)(2,248)(2,393)-14%
Free cash flow (4)2,0346641463,9901,420-30%
Cash, cash equivalents and investments36,56336,99636,78241,64744,05921%
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-10 Cash Flow Q4-25.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-10 Cash Flow Q4-25.html new file mode 100644 index 000000000..a99dda47a --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-10 Cash Flow Q4-25.html @@ -0,0 +1 @@ +
In millions of USDQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
CASH FLOWS FROM OPERATING ACTIVITIES
Net income (1)2,1434201,1901,389856
Adjustments to reconcile net income to net cash provided by operating activities:
Depreciation, amortization and impairment1,4961,4471,4331,6251,643
Stock-based compensation579573635663954
Deferred income taxes (1)6(43)52225(111)
Digital assets (gain) loss, net (1)(347)125(284)(80)307
Other(93)188187333378
Changes in operating assets and liabilities1030(554)(673)2,083(214)
Net cash provided by operating activities4,8142,1562,5406,2383,813
CASH FLOWS FROM INVESTING ACTIVITIES
Capital expenditures (2)(2,780)(1,492)(2,394)(2,248)(2,393)
Purchases of investments(15,158)(6,015)(7,485)(11,402)(12,207)
Proceeds from maturities of investments10,3355,8566,9359,2958,072
Net cash used in investing activities(7,603)(1,651)(2,944)(4,355)(6,528)
CASH FLOWS FROM FINANCING ACTIVITIES
Net cash flows from other debt activities(108)(50)(23)410963
Net borrowings (repayments) under vehicle and energy product financing677(674)(400)81(377)
Net cash flows from noncontrolling interests – Solar(37)(22)(14)(20)(22)
Other453414215512146
Net cash provided by (used in) financing activities985(332)(222)983710
Effect of exchange rate changes on cash and cash equivalents and restricted cash(133)40111(17)37
Net (decrease) increase in cash and cash equivalents and restricted cash(1,937)213(515)2,849(1,968)
Cash and cash equivalents and restricted cash at beginning of period18,97417,03717,25016,73519,584
Cash and cash equivalents and restricted cash at end of period17,03717,25016,73519,58417,616
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-11 Q4 2024-Q4 2025.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-11 Q4 2024-Q4 2025.html new file mode 100644 index 000000000..5d6569ca2 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-11 Q4 2024-Q4 2025.html @@ -0,0 +1 @@ +
In millions of USD or shares as applicable, except per share dataQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840
Stock-based compensation expense, net of tax249428443459682
Digital assets (gain) loss, net of tax (1)(270)97(222)(62)239
Net income attributable to common stockholders (non-GAAP) (1) (2)2,1079341,3931,7701,761
Less: Buy-outs of noncontrolling interests3
Net income used in computing diluted EPS attributable to common stockholders (non-GAAP) (1) (2)2,1049341,3931,7701,761
EPS attributable to common stockholders, diluted (GAAP) (1)0.600.120.330.390.24
Stock-based compensation expense, net of tax, per share0.080.120.130.130.19
Digital assets (gain) loss, net of tax, per share (1)(0.08)0.03(0.06)(0.02)0.07
EPS attributable to common stockholders, diluted (non-GAAP) (1) (2)0.600.270.400.500.50
Shares used in EPS calculation, diluted (GAAP and non-GAAP)3,5173,5213,5193,5263,539
Net income attributable to common stockholders (GAAP) (1)2,1284091,1721,373840
Interest expense9691867685
Provision for income taxes (1)381169359570325
Depreciation, amortization and impairment1,4961,4471,4331,6251,643
Stock-based compensation expense579573635663954
Digital assets (gain) loss, net (1)(347)125(284)(80)307
Adjusted EBITDA (non-GAAP) (1) (3)4,3332,8143,4014,2274,154
Total revenues25,70719,33522,49628,09524,901
Adjusted EBITDA margin (non-GAAP) (1) (3)16.9%14.6%15.1%15.0%16.7%
Automotive gross margin (GAAP)16.6%16.2%17.2%17.0%20.4%
Less: Total regulatory credit revenue recognized3.0%3.7%2.2%1.6%2.5%
Automotive gross margin excluding regulatory credit sales (non-GAAP)13.6%12.5%15.0%15.4%17.9%
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-12 Financial Metrics 2021-25.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-12 Financial Metrics 2021-25.html new file mode 100644 index 000000000..af396802d --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-12 Financial Metrics 2021-25.html @@ -0,0 +1 @@ +
In millions of USD or shares as applicable, except per share data20212022202320242025
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794
Stock-based compensation expense, net of tax2,1211,5601,8121,3282,012
Digital assets loss (gain), net of tax79160(459)52
Release of valuation allowance on deferred tax assets(5,927)
Net income attributable to common stockholders (non-GAAP)(1)7,71914,27610,8827,9605,858
Less: Buy-outs of noncontrolling interests(5)(27)(2)(39)
Less: Dilutive convertible debt(9)(1)
Net income used in computing diluted EPS attributable to common stockholders (non-GAAP)(1)7,73314,30410,8847,9995,858
EPS attributable to common stockholders, diluted (GAAP)1.633.624.302.041.08
Stock-based compensation expense, net of tax, per share0.630.450.520.380.57
Digital assets loss (gain), net of tax, per share0.020.05(0.13)0.01
Release of valuation allowance on deferred tax assets(1.70)
EPS attributable to common stockholders, diluted (non-GAAP)(1)2.284.123.122.291.66
Shares used in EPS calculation, diluted (GAAP and non-GAAP)3,3863,4753,4853,4983,528
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794
Interest expense371191156350338
Provision for (benefit from) income taxes6991132(5,001)1,8371,423
Depreciation, amortization and impairment2,9113,7474,6675,3686,148
Stock-based compensation expense2,1211,5601,8121,9992,825
Digital assets loss (gain), net101204(589)68
Adjusted EBITDA (non-GAAP)(2)11,72219,39016,63116,05614,596
Total revenues53,82381,46296,77397,69094,827
Adjusted EBITDA margin (non-GAAP)(2)21.8%23.8%17.2%16.4%15.4%
Automotive gross margin (GAAP)29.3%28.5%19.4%18.4%17.8%
Less: Total regulatory credit revenue recognized2.3%1.8%1.7%3.0%2.4%
Automotive gross margin excluding regulatory credit sales (non-GAAP)27.0%26.7%17.7%15.4%15.4%
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-13 Financial Data 2022-25.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-13 Financial Data 2022-25.html new file mode 100644 index 000000000..f850e6ec0 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-13 Financial Data 2022-25.html @@ -0,0 +1 @@ +
In millions of USD2Q-20223Q-20224Q-20221Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-2025
Net cash provided by operating activities (GAAP)2,3515,1003,2782,5133,0653,3084,3702423,6126,2554,8142,1562,5406,2383,813
Capital expenditures (1)(1,730)(1,803)(1,858)(2,073)(2,060)(2,459)(2,307)(2,777)(2,272)(3,513)(2,780)(1,492)(2,394)(2,248)(2,393)
Free cash flow (non-GAAP) (1)6213,2971,4204401,0058492,063(2,535)1,3402,7422,0346641463,9901,420
In millions of USD2Q-20223Q-20224Q-20221Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20 252Q-20253Q-20254Q-2025
Net income attributable to common stockholders (GAAP) (2)2,2593,2923,6872,5132,7031,8537,9281,3901,4002,1732,1284091,1721,373840
Interest expense445333292838617686929691867685
Provision for (benefit from) income taxes (2)205305276261323167(5,752)483371602381169359570325
Depreciation, amortization and impairment9229569891,0461,1541,2351,2321,2461,2781,3481,4961,4471,4331,6251,643
Stock-based compensation expense361362419418445465484524439457579573635663954
Digital assets loss (gain), net (2)17034(335)100(7)(347)125(284)(80)307
Adjusted EBITDA (non-GAAP) (2) (3)3,9614,9685,4384,2674,6533,7583,9533,3843,6744,6654,3332,8143,4014,2274,154
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-14 Financial Metrics 2023-25.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-14 Financial Metrics 2023-25.html new file mode 100644 index 000000000..f1645375c --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-14 Financial Metrics 2023-25.html @@ -0,0 +1 @@ +
In millions of USD1Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-2025
Net cash provided by operating activities – TTM (GAAP)13,24213,95612,16413,25610,98511,53214,47914,92316,83715,76515,74814,747
Capital expenditures – TTM (1)(7,464)(7,794)(8,450)(8,899)(9,603)(9,815)(10,869)(11,342)(10,057)(10,179)(8,914)(8,527)
Free cash flow – TTM (non-GAAP) (1)5,7786,1623,7144,3571,3821,7173,6103,5816,7805,5866,8346,220
In millions of USD1Q-20232Q-20233Q-20234Q-20231Q-20242Q-20243Q-20244Q-20241Q-20252Q-20253Q-20254Q-20
Net income attributable to common stockholders – TTM (GAAP) (2)11,75112,19510,75614,99713,87412,57112,8917,0916,1105,8825,0823,794
Interest expense – TTM159143128156203261315350365365349338
Provision for (benefit from) income taxes – TTM (2)1,0471,1651,027(5,001)(4,779)(4,731)(4,296)1,8371,5231,5111,4791,423
Depreciation, amortization and impairment – TTM3,9134,1454,4244,6674,8674,9915,1045,3685,5695,7246,0016,148
Stock-based compensation expense – TTM1,5601,6441,7471,8121,9181,9121,9041,9992,0482,2442,4502,825
Digital assets loss (gain), net – TTM (2)2043434(335)(235)(242)(589)(129)(513)(586)68
Adjusted EBITDA – TTM (non-GAAP) (2) (3)18,63419,32618,11616,63115,74814,76915,67616,05615,48615,21314,77514,596
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-2 Financial Data 2021-25.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-2 Financial Data 2021-25.html new file mode 100644 index 000000000..c1da2bc3d --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-2 Financial Data 2021-25.html @@ -0,0 +1 @@ +
($ in millions, except percentages and per share data)20212022202320242025YoY
Total automotive revenues47,23271,46282,41977,07069,526-10%
Energy generation and storage revenue2,7893,9096,03510,08612,77127%
Services and other revenue3,8026,0918,31910,53412,53019%
Total revenues53,82381,46296,77397,69094,827-3%
Total gross profit13,60620,85317,66017,45017,094-2%
Total GAAP gross margin25.3%25.6%18.2%17.9%18.0%16 bp
Operating expenses7,0837,1978,76910,37412,73923%
Income from operations6,52313,6568,8917,0764,355-38%
Operating margin12.1%16.8%9.2%7.2%4.6%-265 bp
Adjusted EBITDA (1)11,72219,39016,63116,05614,596-9%
Adjusted EBITDA margin (1)21.8%23.8%17.2%16.4%15.4%-104 bp
Net income attributable to common stockholders (GAAP)5,51912,55614,9977,0913,794-46%
Net income attributable to common stockholders (non-GAAP) (2)7,71914,27610,8827,9605,858-26%
EPS attributable to common stockholders, diluted (GAAP)1.633.624.302.041.08-47%
EPS attributable to common stockholders, diluted (non-GAAP) (2)2.284.123.122.291.66-28%
Net cash provided by operating activities11,49714,72413,25614,92314,747-1%
Capital expenditures (3)(6,514)(7,163)(8,899)(11,342)(8,527)-25%
Free cash flow (3)4,9837,5614,3573,5816,22074%
Cash, cash equivalents and investments17,70722,18529,09436,56344,05921%
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-3 Tesla Q4-2025 Data.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-3 Tesla Q4-2025 Data.html new file mode 100644 index 000000000..8e4222644 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-3 Tesla Q4-2025 Data.html @@ -0,0 +1 @@ +
Q4-2024Q1-2025Q2-2025Q3-2025Q4-2025YoY
Model 3/Y production436,718345,454396,835435,826422,652-3%
Other models production22,72717,16113,40911,62411,706-48%
Total production459,445362,615410,244447,450434,358-5%
Model 3/Y deliveries471,930323,800373,728481,166406,585-14%
Other models deliveries23,64012,88110,39415,93311,642-51%
Total deliveries495,570336,681384,122497,099418,227-16%
of which subject to operating lease accounting26,96213,7216,67010,23010,996-59%
Cumulative $deliveries^{(1)}$ (all-time; mil)7.37.68.08.58.922%
Active FSD $Subscriptions^{(2)}$ (mil)0.80.80.91.01.138%
Total end of quarter operating lease (new vehicle) $count^{(3)}$ 180,523179,930172,882167,163163,075-10%
Global vehicle inventory (days of supply) $^{(4)}$ 122224101525%
Storage deployed (GWh)11.010.49.612.514.229%
Tesla locations1,3591,3901,4541,4981,55314%
Supercharger stations6,9757,1317,3777,7538,18217%
Supercharger connectors65,49567,31670,22873,81777,68219%
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-4 Tesla 2021-2025 Data.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-4 Tesla 2021-2025 Data.html new file mode 100644 index 000000000..65641b145 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-4 Tesla 2021-2025 Data.html @@ -0,0 +1 @@ +
20212022202320242025YoY
Model 3/Y production906,0321,298,4341,775,1591,679,3381,600,767-5%
Other models production24,39071,17770,82694,10553,900-43%
Total production930,4221,369,6111,845,9851,773,4431,654,667-7%
Model 3/Y deliveries911,2421,247,1461,739,7071,704,0931,585,279-7%
Other models deliveries24,98066,70568,87485,13350,850-40%
Total deliveries936,2221,313,8511,808,5811,789,2261,636,129-9%
of which subject to operating lease accounting60,91247,58272,22660,00341,617-31%
Cumulative $deliveries^{(1)}$ (all-time; mil)2.33.75.57.38.922%
Active FSD $Subscriptions^{(2)}$ (mil)0.40.50.60.81.138%
Total end of year operating lease (new vehicle) count120,342140,667176,564180,523163,075-10%
Global vehicle inventory (days of supply) $^{(3)}$ 61616131515%
Storage deployed (GWh)4.06.514.731.446.749%
Tesla locations6449631,2081,3591,55314%
Supercharger stations3,4764,6785,9526,9758,18217%
Supercharger connectors31,49842,41954,89265,49577,68219%
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-5 Tesla Production.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-5 Tesla Production.html new file mode 100644 index 000000000..a95f02150 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-5 Tesla Production.html @@ -0,0 +1 @@ +
RegionProductCapacityStatus
Automotive
CaliforniaModel 3 / Model Y>550,000Production
Model S / Model X100,000Production
ShanghaiModel 3 / Model Y>950,000Production
BerlinModel Y>375,000Production
TexasModel Y>250,000Production
Cybertruck>125,000Production
Cybercab-Tooling
NevadaTesla Semi-Tooling
TBDRoadster-Design development
Energy Generation and Storage
CaliforniaMegapack40 GWhProduction
NevadaPowerwall>6 GWhProduction
ShanghaiMegapack40 GWhProduction
TexasMegapack-Construction
Robotics
CaliforniaOptimus-Construction
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-6 Facility Status.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-6 Facility Status.html new file mode 100644 index 000000000..3c1a54bb9 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-6 Facility Status.html @@ -0,0 +1 @@ +
RegionProductCapacityStatus
AI Training Compute
TexasCortex 1>100k H100eProduction
Cortex 2-Construction
Battery Manufacturing
NevadaLFP7 GWhEarly Ramp
Texas468040 GWhProduction
Cathode Materials10 GWhEarly Ramp
Lithium Refining30 GWhEarly Ramp
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-7 Autonomous Driving Status.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-7 Autonomous Driving Status.html new file mode 100644 index 000000000..21f90f521 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-7 Autonomous Driving Status.html @@ -0,0 +1 @@ +
StateMetroStatus
CaliforniaSF Bay AreaSafety Driver
TexasAustinRamping Unsupervised
Dallas1H 2026
Houston1H 2026
ArizonaPhoenix1H 2026
FloridaMiami1H 2026
Orlando1H 2026
Tampa1H 2026
NevadaLas Vegas1H 2026
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-8 Q4 2024-Q4 2025 Rev.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-8 Q4 2024-Q4 2025 Rev.html new file mode 100644 index 000000000..793ce0765 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-8 Q4 2024-Q4 2025 Rev.html @@ -0,0 +1 @@ +
In millions of USD or shares as applicable, except per share dataQ4-2024Q1-2025Q2-2025Q3-2025Q4-2025
REVENUES
Automotive sales18,65912,92515,78720,35916,750
Automotive regulatory credits692595439417542
Automotive leasing447447435429401
Total automotive revenues19,79813,96716,66121,20517,693
Energy generation and storage3,0612,7302,7893,4153,837
Services and other2,8482,6383,0463,4753,371
Total revenues25,70719,33522,49628,09524,901
COST OF REVENUES
Automotive sales16,26811,46113,56717,36513,874
Automotive leasing242239228225206
Total automotive cost of revenues16,51011,70013,79517,59014,080
Energy generation and storage2,2891,9451,9432,3422,739
Services and other2,7292,5372,8803,1093,073
Total cost of revenues21,52816,18218,61823,04119,892
Gross profit4,1793,1533,8785,0545,009
OPERATING EXPENSES
Research and development1,2761,4091,5891,6301,783
Selling, general and administrative1,3131,2511,3661,5621,655
Restructuring and other794238162
Total operating expenses2,5962,7542,9553,4303,600
INCOME FROM OPERATIONS1,5833999231,6241,409
Interest income442400392439449
Interest expense(96)(91)(86)(76)(85)
Other income (expense), net (1)595(119)320(28)(592)
INCOME BEFORE INCOME TAXES (1)2,5245891,5491,9591,181
Provision for income taxes (1)381169359570325
NET INCOME (1)2,1434201,1901,389856
Net income attributable to noncontrolling interests and redeemable noncontrolling interests in subsidiaries1511181616
NET INCOME ATTRIBUTABLE TO COMMON STOCKHOLDERS (1)2,1284091,1721,373840
Less: Buy-out of noncontrolling interest3
NET INCOME USED IN COMPUTING NET INCOME PER SHARE OF COMMON STOCK (1)2,1254091,1721,373840
Net income per share of common stock attributable to common stockholders
Basic (1)$ 0.66$ 0.13$ 0.36$ 0.43$ 0.26
Diluted (1)$ 0.60$ 0.12$ 0.33$ 0.39$ 0.24
Weighted average shares used in computing net income per share of common stock
Basic3,2133,2183,2233,2273,231
Diluted3,5173,5213,5193,5263,539
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-9 Balance Sheet 2024-25.html b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-9 Balance Sheet 2024-25.html new file mode 100644 index 000000000..fa828c3ca --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/tables/table-9 Balance Sheet 2024-25.html @@ -0,0 +1 @@ +
In millions of USD31-Dec-2431-Mar-2530-Jun-2530-Sep-2531-Dec-25
ASSETS
Current assets
Cash, cash equivalents and investments36,56336,99636,78241,64744,059
Accounts receivable, net4,4183,7823,8384,7034,576
Inventory12,01713,70614,57012,27612,392
Prepaid expenses and other current assets5,3624,9055,9436,0277,615
Total current assets58,36059,38961,13364,65368,642
Operating lease vehicles, net5,5815,4775,2305,0194,912
Energy generation and storage systems, net4,9244,8554,7884,6734,604
Property, plant and equipment, net35,83637,08838,57439,40740,643
Operating lease right-of-use assets5,1605,3305,6335,7836,027
Digital assets (2)1,0769511,2351,3151,008
Deferred tax assets (2)6,5246,6876,7216,6376,925
Other non-current assets4,6095,3345,2536,2485,045
Total assets (2)122,070125,111128,567133,735137,806
LIABILITIES AND EQUITY
Current liabilities
Accounts payable12,47413,47113,21212,81913,371
Accrued liabilities and other10,72310,80211,51912,79113,279
Deferred revenue3,1683,2433,2373,7563,424
Current portion of debt and finance leases (1)2,4562,2372,0401,9241,640
Total current liabilities28,82129,75330,00831,29031,714
Debt and finance leases, net of current portion (1)5,7575,2925,1805,7786,736
Deferred revenue, net of current portion3,3173,6103,7643,7463,631
Other long-term liabilities10,49511,03811,54312,20512,860
Total liabilities48,39049,69350,49553,01954,941
Redeemable noncontrolling interests in subsidiaries6362615958
Total stockholders' equity (2)72,91374,65377,31479,97082,137
Noncontrolling interests in subsidiaries704703697687670
Total liabilities and equity (2)122,070125,111128,567133,735137,806
(1) Breakdown of our debt is as follows:
Non-recourse debt7,8717,2386,9537,4588,150
Recourse debt76333
Days sales outstanding1419151417
Days payable outstanding5872655261
\ No newline at end of file diff --git a/apps/api/app/data/demo_documents/tsla-q4-2025/toc_hierarchies.json b/apps/api/app/data/demo_documents/tsla-q4-2025/toc_hierarchies.json new file mode 100644 index 000000000..15f097952 --- /dev/null +++ b/apps/api/app/data/demo_documents/tsla-q4-2025/toc_hierarchies.json @@ -0,0 +1,30 @@ +[ + { + "toc_range": [ + 1, + 15 + ], + "scan_range": [ + 1, + 194 + ], + "toc_with_level": "| id | heading | level |\n|----|------------------------------|-------|\n| 0 | # Q4 and FY 2025 Update | 1 |\n| 1 | Highlights 03 | 2 |\n| 2 | Financial Summary 04 | 2 |\n| 3 | Operational Summary 06 | 2 |\n| 4 | Manufacturing & Hardware 08 | 2 |\n| 5 | Supporting Infrastructure 09 | 2 |\n| 6 | AI & Software 10 | 2 |\n| 7 | Services 11 | 2 |\n| 8 | Other Updates 12 | 2 |\n| 9 | Outlook 13 | 2 |\n| 10 | Photos & Charts 14 | 2 |\n| 11 | Key Metrics 24 | 2 |\n| 12 | Financial Statements 27 | 2 |\n| 13 | Additional Information 34 | 2 |", + "toc_tree": { + "# Q4 and FY 2025 Update": { + "Highlights 03": {}, + "Financial Summary 04": {}, + "Operational Summary 06": {}, + "Manufacturing & Hardware 08": {}, + "Supporting Infrastructure 09": {}, + "AI & Software 10": {}, + "Services 11": {}, + "Other Updates 12": {}, + "Outlook 13": {}, + "Photos & Charts 14": {}, + "Key Metrics 24": {}, + "Financial Statements 27": {}, + "Additional Information 34": {} + } + } + } +] \ No newline at end of file diff --git a/apps/api/app/services/demo_document_service.py b/apps/api/app/services/demo_document_service.py new file mode 100644 index 000000000..ea50a9b1d --- /dev/null +++ b/apps/api/app/services/demo_document_service.py @@ -0,0 +1,814 @@ +"""API-owned canonical demo document catalog and materialization.""" + +from __future__ import annotations + +import json +import math +import shutil +import tempfile +from dataclasses import dataclass +from datetime import datetime, timezone +from functools import lru_cache +from hashlib import blake2b +from pathlib import Path +from typing import Any +from urllib.parse import quote +from uuid import uuid4 + +from sqlalchemy import func, select +from sqlalchemy.ext.asyncio import AsyncSession + +from shared.core.exceptions.domain_exceptions import ValidationException +from shared.models.database.demo_materialization import DemoMaterialization +from shared.models.database.document import Document +from shared.models.database.job import Job +from shared.models.database.job_result import JobResult +from shared.services.retrieval.cache_service import invalidate_retrieval_cache_namespaces +from shared.services.retrieval.publication_service import RetrievalPublicationService +from shared.services.storage.result_storage import get_result_storage + + +@dataclass(frozen=True) +class DemoCitationDefinition: + """Curated answer citation that resolves to a canonical demo chunk.""" + + section_path: str + description: str + content: str + + +@dataclass(frozen=True) +class DemoExampleDefinition: + """Curated user-facing demo question and answer.""" + + id: str + question: str + answer: str + citations: tuple[DemoCitationDefinition, ...] + + +@dataclass(frozen=True) +class DemoSourceDefinition: + """Canonical demo source metadata and local asset pointers.""" + + demo_source_id: str + canonical_document_id: str + title: str + mime_type: str + size_bytes: int + asset_directory: str + chunk_count: int + examples: tuple[DemoExampleDefinition, ...] + + +@dataclass(frozen=True) +class MaterializedDemoSource: + """User-owned copy of one canonical demo source.""" + + demo_source_id: str + document_id: str + status: str + title: str + mime_type: str + size_bytes: int + chunk_count: int + + +_DATA_ROOT = Path(__file__).resolve().parents[1] / "data" / "demo_documents" +_ASSET_DIRECTORY_NAMES = frozenset({"images", "tables"}) +_DEMO_SOURCE_DEFINITIONS: tuple[DemoSourceDefinition, ...] = ( + DemoSourceDefinition( + demo_source_id="demo-tsla-q4-2025", + canonical_document_id="demo-doc-tsla-q4-2025", + title="TSLA-Q4-2025-Update.pdf", + mime_type="application/pdf", + size_bytes=5_648_867, + asset_directory="tsla-q4-2025", + chunk_count=70, + examples=( + DemoExampleDefinition( + id="demo-tsla-q4-2025-xai", + question="What does the document say about Tesla's xAI investment?", + answer=( + "Tesla entered an agreement on January 16, 2026 to invest " + "approximately $2 billion in xAI Series E Preferred Stock.\n\n" + "The document also says Tesla and xAI entered a framework " + "agreement to evaluate AI collaboration, with the investment " + "expected to close in Q1 2026 subject to customary regulatory " + "conditions." + ), + citations=( + DemoCitationDefinition( + section_path=( + "Default_Root/TSLA-Q4-2025-Update.pdf-->OTHER UPDATES" + ), + description="xAI investment", + content=( + "On January 16, 2026, Tesla entered into an agreement " + "to invest approximately" + ), + ), + ), + ), + DemoExampleDefinition( + id="demo-tsla-q4-2025-energy-storage", + question="What does the document say about energy storage?", + answer=( + "Tesla achieved its highest quarterly energy storage " + "deployments, driven by record Megapack deployments.\n\n" + "Energy gross profit reached a record $1.1 billion, marking " + "the fifth consecutive record quarter.\n\n" + "Tesla also plans to begin Megapack 3 and Megablock " + "production at Megafactory Houston in 2026." + ), + citations=( + DemoCitationDefinition( + section_path=( + "Default_Root/TSLA-Q4-2025-Update.pdf-->SUMMARY-->" + "Energy generation and storage" + ), + description="Storage deployment growth", + content=( + "We achieved our highest quarterly energy storage " + "deployments, driven by record Megapack deployments." + ), + ), + ), + ), + DemoExampleDefinition( + id="demo-tsla-q4-2025-production-plans", + question="What production plans does Tesla mention for 2026?", + answer=( + "Tesla says Cybercab, Tesla Semi, and Megapack 3 are on " + "schedule for volume production starting in 2026.\n\n" + "The same product update also notes that first-generation " + "Optimus production lines are being installed before volume " + "production." + ), + citations=( + DemoCitationDefinition( + section_path=( + "Default_Root/TSLA-Q4-2025-Update.pdf-->OUTLOOK-->" + "Product" + ), + description="2026 production plans", + content=( + "Cybercab, Tesla Semi and Megapack 3 are on schedule " + "for volume production starting in 2026." + ), + ), + ), + ), + ), + ), +) + + +class DemoDocumentService: + """Serves canonical demo data and copies it into user namespaces.""" + + def __init__( + self, + *, + publication_service: RetrievalPublicationService | None = None, + ) -> None: + self._publication_service = publication_service or RetrievalPublicationService() + + def get_catalog(self) -> dict[str, Any]: + """Return the cacheable canonical demo source catalog.""" + return { + "sources": [ + self._source_catalog_payload(source) + for source in _DEMO_SOURCE_DEFINITIONS + ], + } + + def list_chunks( + self, + *, + demo_source_id: str, + page: int, + page_size: int, + ) -> dict[str, Any] | None: + """Return paginated canonical demo chunks.""" + source = _get_source_definition(demo_source_id) + if source is None: + return None + + chunks = _load_source_chunks(source) + start = (page - 1) * page_size + page_chunks = chunks[start : start + page_size] + return { + "demo_source_id": source.demo_source_id, + "canonical_document_id": source.canonical_document_id, + "title": source.title, + "mime_type": source.mime_type, + "chunks": [ + _chunk_payload(source=source, chunk=chunk) + for chunk in page_chunks + ], + "pagination": { + "page": page, + "page_size": page_size, + "total": len(chunks), + "total_pages": math.ceil(len(chunks) / page_size) if chunks else 0, + }, + } + + def get_chunk( + self, + *, + demo_source_id: str, + demo_chunk_id: str, + ) -> dict[str, Any] | None: + """Return one canonical demo chunk by canonical row id or parser chunk id.""" + source = _get_source_definition(demo_source_id) + if source is None: + return None + + for chunk in _load_source_chunks(source): + if demo_chunk_id in {_canonical_chunk_id(source, chunk), chunk["chunk_id"]}: + return { + "demo_source_id": source.demo_source_id, + "canonical_document_id": source.canonical_document_id, + "chunk": _chunk_payload(source=source, chunk=chunk), + } + + return None + + def get_original_file_path(self, *, demo_source_id: str) -> Path | None: + """Return the canonical original file path for a demo source.""" + source = _get_source_definition(demo_source_id) + if source is None: + return None + + file_path = _source_directory(source) / "original.pdf" + return file_path if file_path.is_file() else None + + def get_asset_file_path( + self, + *, + demo_source_id: str, + asset_path: str, + ) -> Path | None: + """Return a canonical parsed media/table asset path.""" + source = _get_source_definition(demo_source_id) + if source is None: + return None + + source_directory = _source_directory(source).resolve() + normalized_asset_path = _normalize_asset_path(asset_path) + if normalized_asset_path is None: + return None + + candidate = (source_directory / normalized_asset_path).resolve() + if not candidate.is_relative_to(source_directory): + return None + + return candidate if candidate.is_file() else None + + async def materialize_sources( + self, + db: AsyncSession, + *, + user_id: str, + namespace: str, + demo_source_ids: list[str], + ) -> list[MaterializedDemoSource]: + """Copy selected canonical demo sources into a user namespace.""" + selected_demo_source_ids = _deduplicate_source_ids(demo_source_ids) + if not selected_demo_source_ids: + raise ValidationException( + user_message="At least one demo source must be selected.", + violations=[ + { + "field": "demo_source_ids", + "description": "Select one or more demo source IDs.", + } + ], + ) + + selected_sources = [ + _require_source_definition(demo_source_id) + for demo_source_id in selected_demo_source_ids + ] + results: list[MaterializedDemoSource] = [] + for source in selected_sources: + result = await self._materialize_source( + db, + user_id=user_id, + namespace=namespace, + source=source, + ) + results.append(result) + + await db.commit() + await invalidate_retrieval_cache_namespaces( + user_id=user_id, + namespaces=[namespace], + ) + return results + + async def _materialize_source( + self, + db: AsyncSession, + *, + user_id: str, + namespace: str, + source: DemoSourceDefinition, + ) -> MaterializedDemoSource: + await _lock_materialization_scope( + db, + user_id=user_id, + namespace=namespace, + demo_source_id=source.demo_source_id, + ) + existing = await self._get_existing_materialization( + db, + user_id=user_id, + namespace=namespace, + demo_source_id=source.demo_source_id, + ) + if existing is not None and await self._is_active_document( + db, + document_id=existing.document_id, + ): + return _materialized_source_payload( + source=source, + document_id=existing.document_id, + status="existing", + ) + + document_id = f"doc_{uuid4().hex[:12]}" + job_id = f"job_demo_{uuid4().hex[:12]}" + job_result_id = str(uuid4()) + timestamp = _utc_now() + result_bundle = _upload_demo_result_bundle(job_id=job_id, source=source) + + db.add( + Job( + job_id=job_id, + user_id=user_id, + job_type="demo_materialization", + status="done", + source_type="demo", + webhook_enabled=False, + job_metadata={ + "document_id": document_id, + "namespace": namespace, + "source_type": "demo", + "source_file_name": source.title, + "demo_source_id": source.demo_source_id, + }, + version=0, + created_at=timestamp, + updated_at=timestamp, + credits_charged=0, + billing_status="skipped", + ) + ) + db.add( + JobResult( + id=job_result_id, + job_id=job_id, + delivery_mode="inline", + document_metadata={ + "source_file_name": source.title, + "demo_source_id": source.demo_source_id, + }, + inline_payload={"source": "canonical_demo"}, + result_s3_key=result_bundle["zip_key"], + result_size=result_bundle["zip_size"], + created_at=timestamp, + updated_at=timestamp, + ) + ) + await db.flush() + chunks = _publication_chunks(source) + await db.run_sync( + lambda sync_db: self._publication_service.publish_document_state( + sync_db, + job_id=job_id, + job_result_id=job_result_id, + chunks=[dict(chunk) for chunk in chunks], + ) + ) + await db.run_sync( + lambda sync_db: self._publication_service.publish_document_graph( + sync_db, + job_id=job_id, + job_result_id=job_result_id, + ) + ) + await db.flush() + + if existing is None: + db.add( + DemoMaterialization( + user_id=user_id, + namespace=namespace, + demo_source_id=source.demo_source_id, + document_id=document_id, + created_at=timestamp, + updated_at=timestamp, + ) + ) + else: + existing.document_id = document_id + existing.updated_at = timestamp + await db.flush() + return _materialized_source_payload( + source=source, + document_id=document_id, + status="created", + ) + + async def _get_existing_materialization( + self, + db: AsyncSession, + *, + user_id: str, + namespace: str, + demo_source_id: str, + ) -> DemoMaterialization | None: + result = await db.execute( + select(DemoMaterialization) + .where(DemoMaterialization.user_id == user_id) + .where(DemoMaterialization.namespace == namespace) + .where(DemoMaterialization.demo_source_id == demo_source_id) + .with_for_update() + .limit(1) + ) + return result.scalar_one_or_none() + + async def _is_active_document( + self, + db: AsyncSession, + *, + document_id: str, + ) -> bool: + result = await db.execute( + select(Document.document_id) + .where(Document.document_id == document_id) + .where(Document.status == "active") + .limit(1) + ) + return result.scalar_one_or_none() is not None + + def _source_catalog_payload(self, source: DemoSourceDefinition) -> dict[str, Any]: + return { + "demo_source_id": source.demo_source_id, + "canonical_document_id": source.canonical_document_id, + "title": source.title, + "mime_type": source.mime_type, + "size_bytes": source.size_bytes, + "status": "ready", + "chunk_count": source.chunk_count, + "original_file": { + "url": f"/api/v1/demo/sources/{source.demo_source_id}/original", + "mime_type": source.mime_type, + "size_bytes": source.size_bytes, + "can_download": False, + }, + "examples": [ + self._example_payload(source=source, example=example) + for example in source.examples + ], + } + + def _example_payload( + self, + *, + source: DemoSourceDefinition, + example: DemoExampleDefinition, + ) -> dict[str, Any]: + return { + "id": example.id, + "question": example.question, + "answer": example.answer, + "citations": [ + _citation_payload(source=source, citation=citation) + for citation in example.citations + ], + } + + +def _deduplicate_source_ids(demo_source_ids: list[str]) -> list[str]: + selected: list[str] = [] + seen: set[str] = set() + for demo_source_id in demo_source_ids: + normalized = str(demo_source_id).strip() + if not normalized or normalized in seen: + continue + selected.append(normalized) + seen.add(normalized) + return selected + + +async def _lock_materialization_scope( + db: AsyncSession, + *, + user_id: str, + namespace: str, + demo_source_id: str, +) -> None: + lock_id = _materialization_lock_id( + user_id=user_id, + namespace=namespace, + demo_source_id=demo_source_id, + ) + await db.execute(select(func.pg_advisory_xact_lock(lock_id))) + + +def _materialization_lock_id( + *, + user_id: str, + namespace: str, + demo_source_id: str, +) -> int: + lock_key = f"{user_id}\0{namespace}\0{demo_source_id}" + digest = blake2b(lock_key.encode("utf-8"), digest_size=8).digest() + return int.from_bytes(digest, byteorder="big", signed=True) + + +def _materialized_source_payload( + *, + source: DemoSourceDefinition, + document_id: str, + status: str, +) -> MaterializedDemoSource: + return MaterializedDemoSource( + demo_source_id=source.demo_source_id, + document_id=document_id, + status=status, + title=source.title, + mime_type=source.mime_type, + size_bytes=source.size_bytes, + chunk_count=source.chunk_count, + ) + + +def _upload_demo_result_bundle( + *, + job_id: str, + source: DemoSourceDefinition, +) -> dict[str, int | str]: + """Upload canonical demo result files so copied media URLs resolve.""" + source_directory = _source_directory(source) + with tempfile.TemporaryDirectory(prefix="knowhere-demo-result-") as temp_directory: + zip_base_path = Path(temp_directory) / job_id + zip_file_path = Path( + shutil.make_archive( + str(zip_base_path), + "zip", + root_dir=source_directory, + ) + ) + zip_size = zip_file_path.stat().st_size + bundle = get_result_storage().upload( + job_id=job_id, + result_dir=str(source_directory), + zip_file_path=str(zip_file_path), + ) + + return { + "zip_key": bundle.zip_key, + "zip_size": zip_size, + } + + +def _publication_chunks(source: DemoSourceDefinition) -> list[dict[str, Any]]: + return [ + _publication_chunk(source=source, chunk=chunk) + for chunk in _load_source_chunks(source) + ] + + +def _publication_chunk( + *, + source: DemoSourceDefinition, + chunk: dict[str, Any], +) -> dict[str, Any]: + materialized_chunk = dict(chunk) + metadata = _metadata(materialized_chunk) + raw_path = _first_string(metadata.get("path"), materialized_chunk.get("path")) + publication_path = _publication_path(source=source, raw_path=raw_path) + file_path = _first_string( + metadata.get("file_path"), + metadata.get("filePath"), + materialized_chunk.get("file_path"), + materialized_chunk.get("path") if _is_media_chunk(materialized_chunk) else None, + ) + + metadata["path"] = publication_path + if file_path: + metadata["file_path"] = file_path + materialized_chunk["file_path"] = file_path + materialized_chunk["path"] = publication_path + materialized_chunk["metadata"] = metadata + return materialized_chunk + + +def _publication_path( + *, + source: DemoSourceDefinition, + raw_path: str | None, +) -> str: + prefix = f"Default_Root/{source.title}" + raw = str(raw_path or "").strip() + if not raw: + return prefix + + if "-->" in raw: + sections = [ + part.strip() + for part in raw.split("-->")[1:] + if part.strip() + ] + return "/".join([prefix, *sections]) if sections else prefix + + if raw.startswith("images/") or raw.startswith("tables/"): + return f"{prefix}/Assets/{raw}" + + parts = [part.strip() for part in raw.split("/") if part.strip()] + if len(parts) >= 2 and parts[0] == "Default_Root": + return raw + return prefix + + +def _normalize_asset_path(asset_path: str) -> Path | None: + normalized = str(asset_path or "").strip().replace("\\", "/").lstrip("/") + parts = [part for part in normalized.split("/") if part and part != "."] + if not parts or parts[0] not in _ASSET_DIRECTORY_NAMES: + return None + if any(part == ".." or part.startswith(".") for part in parts): + return None + return Path(*parts) + + +def _citation_payload( + *, + source: DemoSourceDefinition, + citation: DemoCitationDefinition, +) -> dict[str, Any]: + chunk = _resolve_citation_chunk(source=source, citation=citation) + return { + "demo_source_id": source.demo_source_id, + "canonical_document_id": source.canonical_document_id, + "canonical_chunk_id": _canonical_chunk_id(source, chunk), + "chunk_id": chunk["chunk_id"], + "chunk_type": _normalize_chunk_type(chunk.get("type")), + "content": citation.content, + "description": citation.description, + "source": { + "document_id": source.canonical_document_id, + "source_file_name": source.title, + "section_path": citation.section_path, + }, + } + + +def _resolve_citation_chunk( + *, + source: DemoSourceDefinition, + citation: DemoCitationDefinition, +) -> dict[str, Any]: + chunks = _load_source_chunks(source) + normalized_content = _normalize_text(citation.content) + if normalized_content: + for chunk in chunks: + if normalized_content in _normalize_text(str(chunk.get("content") or "")): + return chunk + + for chunk in chunks: + if str(chunk.get("path") or "") == citation.section_path: + return chunk + + raise ValueError( + "Demo citation does not resolve to a canonical chunk: " + f"demo_source_id={source.demo_source_id}, section_path={citation.section_path}" + ) + + +def _chunk_payload( + *, + source: DemoSourceDefinition, + chunk: dict[str, Any], +) -> dict[str, Any]: + metadata = _metadata(chunk) + file_path = _first_string( + metadata.get("file_path"), + metadata.get("filePath"), + chunk.get("file_path"), + chunk.get("path") if _is_media_chunk(chunk) else None, + ) + return { + "id": _canonical_chunk_id(source, chunk), + "chunk_id": chunk["chunk_id"], + "chunk_type": _normalize_chunk_type(chunk.get("type")), + "content": str(chunk.get("content") or ""), + "section_path": str(chunk.get("path") or "") or None, + "source_chunk_path": str(chunk.get("path") or "") or None, + "file_path": file_path, + "sort_order": _sort_order(source=source, chunk=chunk), + "metadata": metadata, + "asset_url": _asset_url(source=source, file_path=file_path), + "created_at": None, + } + + +def _sort_order( + *, + source: DemoSourceDefinition, + chunk: dict[str, Any], +) -> int: + try: + return _load_source_chunks(source).index(chunk) + except ValueError: + return 0 + + +def _metadata(chunk: dict[str, Any]) -> dict[str, Any]: + metadata = chunk.get("metadata") + return dict(metadata) if isinstance(metadata, dict) else {} + + +def _is_media_chunk(chunk: dict[str, Any]) -> bool: + return _normalize_chunk_type(chunk.get("type")) in {"image", "table"} + + +def _canonical_chunk_id( + source: DemoSourceDefinition, + chunk: dict[str, Any], +) -> str: + return f"{source.demo_source_id}:{chunk['chunk_id']}" + + +def _asset_url( + *, + source: DemoSourceDefinition, + file_path: str | None, +) -> str | None: + if not file_path: + return None + encoded_path = quote(file_path, safe="/") + return f"/api/v1/demo/sources/{source.demo_source_id}/assets/{encoded_path}" + + +def _normalize_chunk_type(value: object) -> str: + raw = str(value or "").strip().split("\n", 1)[0].lower() + return raw if raw in {"text", "image", "table"} else "text" + + +def _first_string(*values: object) -> str | None: + for value in values: + if isinstance(value, str) and value.strip(): + return value.strip() + return None + + +def _normalize_text(value: str) -> str: + return " ".join(value.lower().split()) + + +def _get_source_definition(demo_source_id: str) -> DemoSourceDefinition | None: + return next( + ( + source + for source in _DEMO_SOURCE_DEFINITIONS + if source.demo_source_id == demo_source_id + ), + None, + ) + + +def _require_source_definition(demo_source_id: str) -> DemoSourceDefinition: + source = _get_source_definition(demo_source_id) + if source is None: + raise KeyError(demo_source_id) + return source + + +def _source_directory(source: DemoSourceDefinition) -> Path: + return _DATA_ROOT / source.asset_directory + + +@lru_cache(maxsize=8) +def _load_source_chunks(source: DemoSourceDefinition) -> tuple[dict[str, Any], ...]: + chunks_path = _source_directory(source) / "chunks.json" + with chunks_path.open("r", encoding="utf-8") as file: + payload = json.load(file) + + chunks = payload.get("chunks") if isinstance(payload, dict) else None + if not isinstance(chunks, list): + return () + + return tuple( + dict(chunk) + for chunk in chunks + if isinstance(chunk, dict) and isinstance(chunk.get("chunk_id"), str) + ) + + +def _utc_now() -> datetime: + return datetime.now(timezone.utc).replace(tzinfo=None) diff --git a/apps/api/tests/contract/test_demo_documents_contract.py b/apps/api/tests/contract/test_demo_documents_contract.py new file mode 100644 index 000000000..3ce273ba0 --- /dev/null +++ b/apps/api/tests/contract/test_demo_documents_contract.py @@ -0,0 +1,405 @@ +from __future__ import annotations + +import asyncio +from collections.abc import Callable +from contextlib import AbstractAsyncContextManager +from pathlib import Path +from types import SimpleNamespace +from typing import Any, cast + +import pytest +from httpx import AsyncClient +from pytest import MonkeyPatch + +from tests.support.contract_database import ContractDatabase + + +DEMO_SOURCE_ID = "demo-tsla-q4-2025" + + +class FakeResultStorage: + def __init__(self) -> None: + self.raw_files_by_job_id: dict[str, set[str]] = {} + + def upload( + self, + *, + job_id: str, + result_dir: str, + zip_file_path: str, + ) -> SimpleNamespace: + assert Path(zip_file_path).is_file() + result_path = Path(result_dir) + raw_files = { + file_path.relative_to(result_path).as_posix() + for file_path in result_path.rglob("*") + if file_path.is_file() + } + self.raw_files_by_job_id[job_id] = raw_files + return SimpleNamespace( + zip_key=f"results/{job_id}.zip", + raw_prefix=f"results/{job_id}/", + raw_files={ + raw_file: f"results/{job_id}/{raw_file}" + for raw_file in sorted(raw_files) + }, + ) + + def normalize_artifact_ref(self, artifact_ref: str | None) -> str | None: + if not artifact_ref: + return None + normalized = str(artifact_ref).strip().replace("\\", "/").lstrip("/") + if normalized.startswith("images/") or normalized.startswith("tables/"): + return normalized + return None + + def generate_artifact_url( + self, + *, + job_id: str, + artifact_ref: str, + expires_in: int = 3600, + ) -> str | None: + normalized = self.normalize_artifact_ref(artifact_ref) + if not normalized: + return None + if normalized not in self.raw_files_by_job_id.get(job_id, set()): + return None + return f"https://assets.example.test/{job_id}/{normalized}" + + +@pytest.mark.asyncio +async def test_should_return_demo_catalog_with_resolvable_canonical_citations( + api_client_factory: Callable[[], AbstractAsyncContextManager[AsyncClient]], +) -> None: + async with api_client_factory() as api_client: + catalog_response = await api_client.get("/api/v1/demo/catalog") + + assert catalog_response.status_code == 200 + catalog = cast(dict[str, Any], catalog_response.json()) + sources = cast(list[dict[str, Any]], catalog["sources"]) + source = sources[0] + examples = cast(list[dict[str, Any]], source["examples"]) + citations = cast(list[dict[str, Any]], examples[0]["citations"]) + citation = citations[0] + + assert source["demo_source_id"] == DEMO_SOURCE_ID + assert source["canonical_document_id"] == "demo-doc-tsla-q4-2025" + assert source["chunk_count"] == 70 + assert source["original_file"]["can_download"] is False + assert citation["canonical_document_id"] == "demo-doc-tsla-q4-2025" + assert citation["canonical_chunk_id"].startswith(f"{DEMO_SOURCE_ID}:") + + async with api_client_factory() as api_client: + chunks_response = await api_client.get( + f"/api/v1/demo/sources/{DEMO_SOURCE_ID}/chunks?page_size=200" + ) + chunk_response = await api_client.get( + "/api/v1/demo/sources/" + f"{DEMO_SOURCE_ID}/chunks/{citation['canonical_chunk_id']}" + ) + + assert chunks_response.status_code == 200 + assert chunk_response.status_code == 200 + chunks_body = cast(dict[str, Any], chunks_response.json()) + chunk_page = cast(list[dict[str, Any]], chunks_body["chunks"]) + asset_url = next( + str(chunk["asset_url"]) for chunk in chunk_page if chunk.get("asset_url") + ) + chunk_body = cast(dict[str, Any], chunk_response.json()) + chunk = cast(dict[str, Any], chunk_body["chunk"]) + + assert chunk["id"] == citation["canonical_chunk_id"] + assert citation["content"] in chunk["content"] + + async with api_client_factory() as api_client: + asset_response = await api_client.get(asset_url) + original_response = await api_client.get( + f"/api/v1/demo/sources/{DEMO_SOURCE_ID}/original" + ) + internal_asset_response = await api_client.get( + f"/api/v1/demo/sources/{DEMO_SOURCE_ID}/assets/full.md" + ) + + assert asset_response.status_code == 200 + assert asset_response.headers["content-disposition"].startswith("inline") + assert original_response.status_code == 200 + assert original_response.headers["content-disposition"].startswith("inline") + assert internal_asset_response.status_code == 404 + + +@pytest.mark.asyncio +async def test_should_materialize_demo_source_without_parse_or_credit_charge( + developer_api_client_factory: Callable[ + [], AbstractAsyncContextManager[AsyncClient] + ], + monkeypatch: MonkeyPatch, +) -> None: + fake_result_storage = FakeResultStorage() + monkeypatch.setattr( + "shared.services.storage.result_storage.get_result_storage", + lambda: fake_result_storage, + ) + + async with developer_api_client_factory() as api_client: + empty_cached_response = await api_client.post( + "/api/v1/retrieval/query", + json={ + "namespace": "contract-demo", + "query": "xAI investment", + "top_k": 5, + }, + ) + first_response = await api_client.post( + "/api/v1/demo/materializations", + json={ + "namespace": "contract-demo", + "demo_source_ids": [DEMO_SOURCE_ID], + }, + ) + retry_response = await api_client.post( + "/api/v1/demo/materializations", + json={ + "namespace": "contract-demo", + "demo_source_ids": [DEMO_SOURCE_ID], + }, + ) + retrieval_response = await api_client.post( + "/api/v1/retrieval/query", + json={ + "namespace": "contract-demo", + "query": "xAI investment", + "top_k": 5, + }, + ) + document_chunks_response = await api_client.get( + f"/api/v1/documents/{first_response.json()['sources'][0]['document_id']}" + "/chunks?include_asset_urls=true&page_size=200" + ) + + assert empty_cached_response.status_code == 200 + assert first_response.status_code == 200 + assert retry_response.status_code == 200 + assert retrieval_response.status_code == 200 + assert document_chunks_response.status_code == 200 + + empty_cached_body = cast(dict[str, Any], empty_cached_response.json()) + assert cast(list[dict[str, Any]], empty_cached_body["results"]) == [] + + first_source = cast(dict[str, Any], first_response.json()["sources"][0]) + retry_source = cast(dict[str, Any], retry_response.json()["sources"][0]) + document_id = str(first_source["document_id"]) + + assert first_source["status"] == "created" + assert retry_source["status"] == "existing" + assert retry_source["document_id"] == document_id + + materialization_rows = await ContractDatabase.fetch_all( + """ + SELECT demo_source_id, document_id + FROM demo_materializations + WHERE user_id = 'local-dev-user' + AND namespace = 'contract-demo' + AND demo_source_id = :demo_source_id + """, + {"demo_source_id": DEMO_SOURCE_ID}, + ) + document_row = await ContractDatabase.fetch_one( + """ + SELECT document_id, status, source_file_name + FROM documents + WHERE document_id = :document_id + """, + {"document_id": document_id}, + ) + chunk_rows = await ContractDatabase.fetch_all( + """ + SELECT id + FROM document_chunks + WHERE document_id = :document_id + """, + {"document_id": document_id}, + ) + job_rows = await ContractDatabase.fetch_all( + """ + SELECT job_id, status, job_type, credits_charged, billing_status + FROM jobs + WHERE user_id = 'local-dev-user' + AND job_metadata ->> 'demo_source_id' = :demo_source_id + """, + {"demo_source_id": DEMO_SOURCE_ID}, + ) + + assert materialization_rows == [ + {"demo_source_id": DEMO_SOURCE_ID, "document_id": document_id} + ] + assert document_row == { + "document_id": document_id, + "status": "active", + "source_file_name": "TSLA-Q4-2025-Update.pdf", + } + assert len(chunk_rows) == 70 + assert len(job_rows) == 1 + job_row = job_rows[0] + assert job_row["status"] == "done" + assert job_row["job_type"] == "demo_materialization" + assert job_row["credits_charged"] == 0 + assert job_row["billing_status"] == "skipped" + + retrieval_body = cast(dict[str, Any], retrieval_response.json()) + retrieval_results = cast(list[dict[str, Any]], retrieval_body["results"]) + chunk_page_body = cast(dict[str, Any], document_chunks_response.json()) + materialized_chunks = cast(list[dict[str, Any]], chunk_page_body["chunks"]) + media_chunks = [ + chunk + for chunk in materialized_chunks + if chunk["chunk_type"] in {"image", "table"} + ] + + assert retrieval_body["namespace"] == "contract-demo" + assert retrieval_results + assert retrieval_results[0]["source"]["document_id"] == document_id + assert retrieval_results[0]["source"]["section_path"] != "Root" + assert media_chunks + assert media_chunks[0]["asset_url"] + uploaded_files = fake_result_storage.raw_files_by_job_id[str(job_row["job_id"])] + assert any(file_path.startswith("images/") for file_path in uploaded_files) + assert any(file_path.startswith("tables/") for file_path in uploaded_files) + + +@pytest.mark.asyncio +async def test_should_serialize_concurrent_first_demo_materialization( + developer_api_client_factory: Callable[ + [], AbstractAsyncContextManager[AsyncClient] + ], + monkeypatch: MonkeyPatch, +) -> None: + fake_result_storage = FakeResultStorage() + monkeypatch.setattr( + "shared.services.storage.result_storage.get_result_storage", + lambda: fake_result_storage, + ) + + async with developer_api_client_factory() as api_client: + first_response, second_response = await asyncio.gather( + api_client.post( + "/api/v1/demo/materializations", + json={ + "namespace": "contract-demo-race", + "demo_source_ids": [DEMO_SOURCE_ID], + }, + ), + api_client.post( + "/api/v1/demo/materializations", + json={ + "namespace": "contract-demo-race", + "demo_source_ids": [DEMO_SOURCE_ID], + }, + ), + ) + + assert first_response.status_code == 200 + assert second_response.status_code == 200 + + first_source = cast(dict[str, Any], first_response.json()["sources"][0]) + second_source = cast(dict[str, Any], second_response.json()["sources"][0]) + document_ids = { + str(first_source["document_id"]), + str(second_source["document_id"]), + } + statuses = {str(first_source["status"]), str(second_source["status"])} + + assert len(document_ids) == 1 + assert statuses == {"created", "existing"} + + materialization_rows = await ContractDatabase.fetch_all( + """ + SELECT demo_source_id, document_id + FROM demo_materializations + WHERE user_id = 'local-dev-user' + AND namespace = 'contract-demo-race' + AND demo_source_id = :demo_source_id + """, + {"demo_source_id": DEMO_SOURCE_ID}, + ) + job_rows = await ContractDatabase.fetch_all( + """ + SELECT job_id + FROM jobs + WHERE user_id = 'local-dev-user' + AND job_metadata ->> 'namespace' = 'contract-demo-race' + AND job_metadata ->> 'demo_source_id' = :demo_source_id + """, + {"demo_source_id": DEMO_SOURCE_ID}, + ) + + assert materialization_rows == [ + { + "demo_source_id": DEMO_SOURCE_ID, + "document_id": next(iter(document_ids)), + } + ] + assert len(job_rows) == 1 + + +@pytest.mark.asyncio +async def test_should_reject_blank_demo_materialization_selection( + developer_api_client_factory: Callable[ + [], AbstractAsyncContextManager[AsyncClient] + ], +) -> None: + async with developer_api_client_factory() as api_client: + response = await api_client.post( + "/api/v1/demo/materializations", + json={ + "namespace": "contract-demo-blank", + "demo_source_ids": [" ", "\t"], + }, + ) + + assert response.status_code == 400 + + +@pytest.mark.asyncio +async def test_should_reject_mixed_demo_materialization_selection_before_upload( + developer_api_client_factory: Callable[ + [], AbstractAsyncContextManager[AsyncClient] + ], + monkeypatch: MonkeyPatch, +) -> None: + fake_result_storage = FakeResultStorage() + monkeypatch.setattr( + "shared.services.storage.result_storage.get_result_storage", + lambda: fake_result_storage, + ) + + async with developer_api_client_factory() as api_client: + response = await api_client.post( + "/api/v1/demo/materializations", + json={ + "namespace": "contract-demo-mixed-invalid", + "demo_source_ids": [DEMO_SOURCE_ID, "missing-demo-source"], + }, + ) + + job_rows = await ContractDatabase.fetch_all( + """ + SELECT job_id + FROM jobs + WHERE user_id = 'local-dev-user' + AND job_metadata ->> 'namespace' = 'contract-demo-mixed-invalid' + """, + ) + materialization_rows = await ContractDatabase.fetch_all( + """ + SELECT demo_source_id, document_id + FROM demo_materializations + WHERE user_id = 'local-dev-user' + AND namespace = 'contract-demo-mixed-invalid' + """, + ) + + assert response.status_code == 404 + assert fake_result_storage.raw_files_by_job_id == {} + assert job_rows == [] + assert materialization_rows == [] diff --git a/packages/shared-python/shared/models/database/__init__.py b/packages/shared-python/shared/models/database/__init__.py index 261dd9992..a0aba9d3d 100644 --- a/packages/shared-python/shared/models/database/__init__.py +++ b/packages/shared-python/shared/models/database/__init__.py @@ -20,6 +20,7 @@ RetrievalRun, RetrievalStep, ) +from .demo_materialization import DemoMaterialization from .guest_device import GuestDevice from .job import Job from .job_result import JobChunk, JobResult @@ -53,6 +54,7 @@ "Document", "DocumentSection", "DocumentChunk", + "DemoMaterialization", "GraphNode", "GraphEdge", "RetrievalHitStat", diff --git a/packages/shared-python/shared/models/database/demo_materialization.py b/packages/shared-python/shared/models/database/demo_materialization.py new file mode 100644 index 000000000..d4cc1a7a1 --- /dev/null +++ b/packages/shared-python/shared/models/database/demo_materialization.py @@ -0,0 +1,55 @@ +"""Canonical demo document materialization state.""" + +from __future__ import annotations + +from datetime import datetime +from uuid import uuid4 + +from sqlalchemy import DateTime, ForeignKey, Index, String, Text, UniqueConstraint +from sqlalchemy.orm import Mapped, mapped_column + +from shared.core.database import Base +from shared.utils.utc_now import utc_now_naive + + +class DemoMaterialization(Base): + """Maps a canonical demo source to one user's retrieval document copy.""" + + __tablename__ = "demo_materializations" + + id: Mapped[str] = mapped_column( + String(36), + primary_key=True, + default=lambda: f"demo_mat_{uuid4().hex[:12]}", + ) + user_id: Mapped[str] = mapped_column( + Text, ForeignKey("user.id", ondelete="RESTRICT"), nullable=False + ) + namespace: Mapped[str] = mapped_column( + String(255), nullable=False, default="default" + ) + demo_source_id: Mapped[str] = mapped_column(String(128), nullable=False) + document_id: Mapped[str] = mapped_column( + String(36), + ForeignKey("documents.document_id", ondelete="CASCADE"), + nullable=False, + ) + created_at: Mapped[datetime] = mapped_column( + DateTime, default=utc_now_naive, nullable=False + ) + updated_at: Mapped[datetime] = mapped_column( + DateTime, + default=utc_now_naive, + onupdate=utc_now_naive, + nullable=False, + ) + + __table_args__ = ( + UniqueConstraint( + "user_id", + "namespace", + "demo_source_id", + name="uq_demo_materializations_scope_source", + ), + Index("idx_demo_materializations_document", "document_id"), + )