liveBook · Manning

Indexing

As explained in Vibe Engineering

Project indexing is the process of analyzing and cataloging project files to support efficient code search and contextual retrieval.

Project indexing turns a repository into searchable context. An IDE scans source files, documentation, and configuration, divides them into meaningful chunks, converts each chunk to an embedding, and stores the vectors for retrieval. section 3.5.1

For a request, the agent embeds the query, retrieves similar chunks, and adds a selection to the prompt before generation. Similarity is not proof of relevance: the chunks judged closest may not be the ones needed. section 3.5.1

Check indexing before exploring a project

Before asking for a high-level architecture description of an unfamiliar project, confirm it is fully indexed. In Cursor, check the Indexing & Docs settings; a general prompt suits a black-box starting point. section 2.2.1

Figure 3.7 Context-aware assistance flow. The developer's query is converted into an embedding, matched against the indexed codebase, and the most relevant chunks are injected into the prompt before the model generates its response.

Trace how a developer query becomes an embedding, matches indexed chunks, and supplies context for generation. section 3.5.1

How Vibe Engineering covers it

How deep it goes
Explains scanning, chunking, embedding, vector storage, similarity search, and prompt augmentation, while leaving retrieval relevance as an open question.
Examples
Uses a JWT-library refactor request and an unfamiliar contact-management project checked in Cursor's indexing settings.
What it assumes
Assumes a project has been imported into an IDE and starts from zero application knowledge with general prompts.
What you can do after
Operate indexing by confirming full project coverage in Cursor's Indexing & Docs settings before prompting about an unfamiliar application.
How it connects
Connects indexing to embeddings, vector databases, semantic search, retrieval-augmented generation, and prompt augmentation.

Also explained in

Compare how 22 books explain indexing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Vibe Engineering. The section links point to the parts of the book it draws on.