Local search answers entity-focused queries by combining semantically relevant graph entities with connected relationships, community summaries, and source-text chunks. Vector search identifies entry-point entities, while graph traversal gathers surrounding structured and unstructured context. section 7.3.2 section 7.3
A practical local-search pipeline:
- Embed entity summaries and store the vectors in a database vector index. section 7.3.2
- Embed the user query and retrieve the most similar entities as entry points. section 7.3.2
- Expand those entities through connected chunks, communities, relationships, and entity summaries. section 7.3.2
- Rank and limit the retrieved context before passing it to an LLM for the final response. section 7.3.2
Entity-focused questions
For “What are the healing properties of chamomile?”, local search retrieves the chamomile entity, related graph information, community summaries, and associated source chunks. A runnable example asks, “Who is Ulysses?” section 7.3.2
Figure 7.5 Local search
Use the local-search diagram to follow the flow from vector-selected entities through graph and text retrieval to answer generation. section 7.3.2


