Overview
Adist uses advanced block-based indexing to parse and organize your project files into semantic blocks. This enables precise document searching, contextual AI responses, and efficient codebase analysis.Block-Based Indexing
The default indexing method splits documents into semantic blocks such as functions, classes, methods, headings, and paragraphs. Each block is indexed individually with metadata, allowing for:- More precise searching and better context understanding
- Improved AI interactions with relevant code snippets
- Hierarchical structure preservation
- Parent-child block relationships
Block-based indexing replaced the legacy full-document indexing in recent versions for better performance and accuracy.
Indexing Your Project
Initial Indexing
When you initialize a new project, Adist automatically indexes all supported files:- Generate summaries for each indexed file
- Create an overall project summary
- Store summaries for faster future queries
Reindexing
To update your project’s index after code changes:--summarize flag to regenerate summaries:
Reindexing All Projects
You can reindex all configured projects at once:Supported File Types
Adist indexes a wide variety of file types by default:Include and Exclude Patterns
The indexer uses fast-glob patterns to find files: Default Include Patterns:Custom include/exclude patterns can be configured when using the indexing API programmatically.
Index Structure
Each indexed document contains:- Path: Relative path from project root
- Title: Document filename or first heading
- Last Modified: Timestamp of last file modification
- Size: File size in bytes
- Blocks: Array of semantic blocks with:
id: Unique block identifiertype: Block type (function, class, heading, etc.)content: Block contentstartLineandendLine: Source locationparent: Parent block ID (if applicable)children: Child block IDsmetadata: Type-specific metadata (name, signature, etc.)summary: AI-generated summary (if enabled)
Performance Considerations
Indexing Speed
Adist uses a progress bar to show indexing status:Summarization Costs
The tool displays:- File count and total size before summarizing
- Estimated processing time
- Actual costs after completion
Storage Location
Indexes are stored in the configuration directory:Advanced Options
Verbose Mode
See detailed indexing information:- LLM service status
- Individual file processing
- Summary generation progress
- Error details
Legacy Indexing
The previous full-document indexing method is still available:Legacy indexing is maintained for backward compatibility but block-based indexing is recommended for better results.
Next Steps
Search Your Code
Learn how to search indexed projects
AI Chat
Start chatting with your codebase