Skip to main content

Module context_assembly

Module context_assembly 

Source
Expand description

Graph-aware context assembly that combines semantic search results with entity-graph traversals.

Structs§

AssembledContext
Result of graph-aware context assembly
ContextItem
A single piece of assembled context with its relevance score.
EntityContext
An entity and its graph neighborhood relevant to the query
ImpactEntry
An entity that would be impacted by changes to a query entity

Enums§

ContextSource
How a context item was found
EntityRelevance
How an entity relates to the original query.

Functions§

analyze_impact
Perform impact analysis: find all entities that depend on any of the query entities. Traverses DependsOn, RequiredBy, and Implements edges in reverse.
assemble_context
Assemble context from a session’s entity graph and context updates.
boost_by_graph
Score and boost semantic search results based on entity graph connections.
build_entity_context
Build entity context: for each query entity, traverse the graph to find related entities and their typed relationships.
find_query_entities
Extract entity names that appear in the query text.
format_for_llm
Format assembled context as a text block suitable for LLM injection.