Skip to content
Back to skills

Llamaindex Knowledge Patch

ASecurity

LlamaIndex

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentspythongonodeazureapifrontenddocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill llamaindex-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llamaindex Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llamaindex Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-llamaindex-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-llamaindex-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: llamaindex-knowledge-patch
description: LlamaIndex
version: null
license: MIT
metadata:
  author: Nevaberry
---



# LlamaIndex compatibility guidance

Load this skill when migrating LlamaIndex APIs, configuring agents and
workflows, or working on ingestion, retrieval, and integration compatibility.
Use the topic references for complete package lists and detailed behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [API migrations](references/api-migrations.md) | Configuration, Pydantic, removed integrations, dependency resolution, Python requirements, LangChain bridges |
| [Agents and workflows](references/agents-workflows.md) | Memory, tool schemas and failures, event batches, shared state, resources, validation, structured output, AG-UI |
| [Ingestion and storage](references/ingestion-storage.md) | Cache invalidation, process workers, upserts, deletion, splitting, parsing, extraction, readers, indexing |
| [Package integrations](references/package-integrations.md) | provider adapter dependencies, Bedrock, Google GenAI, tool attachments, local context, instrumentation, MCP, vector-store clients |
| [Retrieval and citations](references/retrieval-citations.md) | Filters, query arguments, object IDs, collection metadata, reranking, prompt sizing, streaming, citation identity |

## Breaking API changes and deprecations

### Replace removed configuration APIs

v0.11 removes `ServiceContext` and `LLMPredictor`;
`ServiceContext.from_defaults()` raises an error.
Assign the LLM instance itself to `Settings.llm` for a process default, or pass
LLM and embedding instances directly to components needing their own configuration.

```python
from llama_index.core import Settings

Settings.llm = llm
Settings.embed_model = embed_model
```

Core moves to Pydantic v2 in v0.11. Check custom components and event models
for Pydantic v1 validator and serialization APIs, and verify integration support for v2.

### Migrate removed integrations and deprecated memory

Core 0.14.25 removes the deprecated `ipex-llm` and `optimum-intel` IPEX
integrations. Migrate code using either integration before upgrading.

Documentation recommends `Memory` for new agents and marks `ChatMemoryBuffer`,
`ChatSummaryMemoryBuffer`, and `VectorMemory` as deprecated.

### Check interpreter and dependency constraints

v0.12 drops Python 3.8 support. Check the Python requirement of the release
you install; `llama-index==0.14.23` declares Python `>=3.10,<4.0`.
For packages whose minimum Python versions were raised, check the target
package's `Requires-Python` metadata on older interpreters. The API migration
reference contains the affected package lists.

The v0.11 and v0.12 upgrades bump the `llama-index-*` packages alongside core.
Resolve all installed distributions together: integrations have their own
versions and core constraints.
v0.11 makes `pandas` optional; declare it as an application dependency if
your code or the features it uses require it.
v0.12 removes core's NumPy pin; resolve NumPy against the full environment.

### Handle failed tools and AG-UI history

Core 0.14.25 skips automatic retries when a function tool fails. Handle
transient failures explicitly if a tool needs retries.

`llama-index-protocols-ag-ui` 0.5.0 excludes frontend tool results from
server-side conversation history. Applications that need those results
retained must store them separately.

## Workflow execution and agent state

### Use standalone Workflows

Install `llama-index-workflows` for the standalone import:

```python
import workflows
```

`llama-index-core` includes a compatible dependency and keeps
`llama_index.core.workflow` available.

### Dispatch events and coordinate shared state

A step can return a list of typed events to dispatch a finite batch.
A downstream step can consume the collected results together.
Steps in one run share the asynchronous key/value store at `ctx.store`.
Use its edit pattern for coordinated updates when steps run concurrently.

```python
await ctx.store.set("attempt", 1)
attempt = await ctx.store.get("attempt")
```

Use workflow resources to inject clients, indexes, or models. Resource
factories support dependency validation and test replacements while the
context store holds serializable run state.

### Validate routing and configure output

Workflows validate the event graph inferred from step annotations before
execution. Call `workflow.validate()` in tests or at startup to catch routing
issues such as events with no producer or consumer.
`AgentWorkflow` honors agent-level `output_cls` and `structured_output_fn`.
Generated tool schemas exclude `*args` and `**kwargs` from required inputs.

### Preserve memory content

Chat history writes retain all blocks in a message. The streaming chat
response exposes accumulated text when it is written to memory.
`Memory` accepts any `AsyncDBChatStore` implementation, including custom stores.
The `FactExtractionMemoryBlock` condense prompt requests a full snapshot of
retained facts; use the condensed result as a replacement snapshot.

## Ingestion and document lifecycle

### Invalidate caches when transformation behavior changes

`IngestionPipeline` caches by node input and transformation configuration.
If custom transformation behavior changes without a serialized configuration
change, invalidate the cache, including local caches saved with
`pipeline.persist()` and restored with `pipeline.load()`.

### Run picklable transformations in process workers

`IngestionPipeline.run()` can run transformations in separate processes with
`num_workers`. Use transformations that can be pickled when enabling workers.

```python
nodes = pipeline.run(documents=documents, num_workers=2)
```

### Preserve document chunks and bound deletion scope

`IngestionPipeline` upserts retain every node produced for a document. Upsert a document split
into multiple chunks and expect all its chunks in the updated index.
Use a deletion-enabled `DocstoreStrategy` only when the run includes every
source document that should remain indexed. A partial crawl can cause
documents outside the batch to be treated as removed.

### Check splitting and extraction behavior

`CodeSplitter` preserves oversized leaf nodes; check returned chunk sizes
if a downstream component enforces a hard limit.
`HTMLNodeParser` filters empty nodes out of its result.
Set `raise_on_error=True` on an LLM path extractor to propagate extraction
failures to the caller.

## Retrieval, synthesis, and citations

`MetadataFilters` treats `condition=None` as AND: matches must satisfy every
supplied filter. MMR embedding search honors `mmr_threshold=0`.
`MetadataReplacementPostProcessor` keeps original node content when the
target metadata key has a `None` value.

`LLMRerank` supports asynchronous postprocessing. `StructuredLLMRerank`
supports native async postprocessing; given a configured reranker:

```python
ranked_nodes = await reranker.apostprocess_nodes(nodes, query_str=query)
```

`PromptHelper` can use caller-supplied LLM metadata as a prompt-sizing fallback.
Query engines using `streaming=True` can stream synthesized responses with
`response_mode="compact"` or `response_mode="refine"`.
Each `CitationQueryEngine` citation node has its own ID and offsets; citations
split from one source node can be keyed by their individual IDs.

## Integration behavior to check

### Model configuration and asynchronous SDK paths

`llama-index-llms-google-genai` 0.10.0 changes the model selected when none is
specified. Set `model` explicitly to preserve your choice across the upgrade.
Unspecified generation parameters are omitted so service defaults apply.
In 0.11.3, the integration supplies its default `temperature` only for models
older than generation 3; generation 3 and later use the service default when
the caller leaves `temperature` unset.

`llama-index-embeddings-bedrock` and `llama-index-llms-bedrock-converse` make
`aioboto3` optional. Install it separately for their asynchronous SDK paths.
See the package integration reference for dependency constraints, thinking
configuration, request fields, and tool attachments.

### AG-UI messages

Supply the matching `tool_call_id` on tool result messages; AG-UI raises
`ValueError` if it is missing. User messages can carry images, audio, video,
and documents. `llama-index-protocols-ag-ui` 0.6.0 converts producer content
using AG-UI 1.0; consuming clients should handle that format.

### Vector-store query and indexing details

`llama-index-vector-stores-azureaisearch` preserves falsy node metadata such as
`0` and `False` during indexing.
Qdrant `aquery()` honors falsy shard identifiers such as `shard_identifier=0`.
`llama-index-vector-stores-weaviate` 1.7.1 matches `VectorStoreQuery.node_ids`
against stored object IDs. Queries against pre-existing Weaviate collections
return stored collection properties as node metadata.

Files in this skill

  • SKILL.md7.1 KB
  • coverage.json939 B
  • references/agents-workflows.md3.2 KB
  • references/api-migrations.md2.6 KB
  • references/ingestion-storage.md3 KB
  • references/package-integrations.md2.1 KB
  • references/retrieval-citations.md824 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.