What this thread does
The problem
An existing LlamaIndex workflow stops working after an upgrade. Audit workflow execution separately from the older core/integration import split; they are different migrations.
Versions and status
| Component | Verified status |
|---|---|
llama-index-core | As of November 2026, 0.14.26, released 2026-11-13; Python >=3.11,<4.0; MIT (all checked 2026-11-17), PyPI |
| Migration boundary | core 0.14.0, released 2025-09-08 (both checked 2026-10-20), versioned PyPI |
| Workflow dependency | The boundary introduces workflows 2.0 (checked 2026-10-20); integration distributions have independent versions |
What changed
- On 2025-09-08 (checked 2026-10-20), core 0.14.0 (checked 2026-10-20) raised its workflows dependency to 2.0 (checked 2026-10-20). Deprecated checkpointers, sub-workflows and stepwise execution disappeared.
Workflow.send_eventandWorkflow.stream_events()were removed; the changelog retains their Context counterparts. Step exceptions stopped being wrapped inWorkflowRuntimeError. Official changelog. - Public import changes belong to the earlier 0.10 transition (checked 2026-10-20). Core uses
llama_index.core; integrations have separate distributions/namespaces. That migration also moves away fromServiceContext. Official packaging migration. - Current examples use
ctx.store.get/ctx.store.set. This is current guidance, not a claim that every state API changed at the release boundary. Official state guide, checked 2026-10-20.
What breaks
Removed Workflow method calls fail attribute lookup. Old checkpoint/sub-workflow/stepwise code needs redesign. Catching only WorkflowRuntimeError can miss the original step exception. These are consequences inferred from removals, not reproduced tracebacks.
A separate packaging symptom is ImportError: cannot import name 'VectorStoreIndex' from 'llama_index' (unknown location). paritadave's report, checked 2026-10-20, has maintainer logan-markewich's correction to the public core import. It does not mean the workflow release moved that class again.
When to migrate which part
| Your code uses | Work required |
|---|---|
| Current core indexing imports | Resolve compatible dependencies; check retrieval |
| Workflow streaming/dispatch | Move calls off Workflow; distinguish dispatched events from progress output |
| Checkpointers, stepwise runs or sub-workflows | Review replacement orchestration/persistence before upgrading production |
| Root imports or ServiceContext | Apply the separate packaging/Settings migration |
How to migrate
1. Branch and retain the previous lockfile. In a fresh environment, inventory with python -m pip show llama-index llama-index-core llama-index-workflows and python -m pip check. Search your source for ServiceContext, send_event, stream_events, run_step, add_workflows and WorkflowCheckpointer. These are audit terms, not a complete removal list. 2. For a core-only app, resolve a candidate with python -m pip install "llama-index-core==0.14.26" (as of November 2026; checked 2026-11-17), then add the integrations your app imports and lock the resolved set. For an umbrella installation, update its requirement coherently rather than forcing core beneath an incompatible umbrella. Names come from PyPI and the packaging guide; this is a proposed, untested install command. 3. Use from llama_index.core import VectorStoreIndex, Settings. Replace ServiceContext configuration using the official Settings migration, checked 2026-10-20. Do not give every integration the core version pin. 4. For standalone workflows, use from workflows import Workflow, step and from workflows.events import Event, StartEvent, StopEvent, copied from the current official introduction, checked 2026-10-20. Keep one Event family throughout. This does not assert that all compatibility re-exports vanished. 5. Dispatch inside a step with ctx.send_event(...). Emit caller-visible progress with ctx.write_event_to_stream(...). Consume the run handler, then await its result, as in the official streaming guide, checked 2026-10-20. Inside an async function, the caller pattern is:
handler = workflow.run()
async for ev in handler.stream_events():
print(ev)
result = await handler
6. Replace removed orchestration features deliberately. Specify restart persistence, child results and duplicate side-effect handling; no verified one-command replacement is supplied. Update exception tests to check original failure types. Run python -m pip check and application tests before adopting the lockfile.
What to test
Import every used integration in the deployment interpreter. Exercise success, a failing step, streaming and cancellation; assert both progress and the awaited result. Run twice to check state isolation and test deliberate shared Context separately. Compare retrieval on a fixed document fixture with an unchanged embedder. Test replacement resume behaviour across a real process restart.
Community evidence
- paritadave's report above has a maintainer answer supporting public core imports rather than deep-module workarounds.
- AnandUgale's workflow report, checked 2026-10-20, shows signature validation failing despite visible Event annotations. Its discussion distinguishes older bundled code from standalone workflows. Contributor adrianlyjak closed it after directing remaining failures to the current workflows package. This is historical migration context, not a current failure-rate measurement.
Pitfalls
The old import-upgrade CLI is not a workflow codemod. Do not replace every stream_events occurrence mechanically: the handler method is current. Do not assume old checkpoints resume in a replacement persistence design. Import rewrites cannot restore removed execution features.
A prompt to give your agent
Your training data may predate this release. Read <https://raw.githubusercontent.com/run-llama/llama_index/main/CHANGELOG.md> at the dated workflow transition, <https://developers.llamaindex.ai/python/llamaagents/workflows/streaming/> and the linked Settings migration before editing. Do not guess APIs. Inventory distributions and the lockfile, distinguish packaging imports from removed workflow features, and propose a small patch using names from those sources. Test execution, streaming and original step exceptions. Explain checkpoint/resume redesign separately; preserve the stored index until regression checks pass.
Limits
Checked 2026-10-20. No installation, LlamaIndex execution, migration or resume test was run. Two community reports support adjacent failure modes; direct evidence for this exact upgrade is thin. Workflow docs advance independently of core; verify the resolved workflows version against examples. No retirement/shutdown deadline was found in the cited sources.
Started from a post by @run-llama, packaged by the editor. Original post