How would you index source-code repositories for RAG?
Source code benefits from structure-aware parsing rather than arbitrary text splitting. Split by files, classes, functions, and…
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3049–3060 of 3610 questions
Source code benefits from structure-aware parsing rather than arbitrary text splitting. Split by files, classes, functions, and…
A table chunk should preserve headers and the relationship between each row's values and columns. Repeat column headers where…
Contextual chunking adds useful document-level context, such as a title, section path, or short description, to each chunk before…
Pre-filtering is useful when constraints such as tenant, language, date, or access permissions must narrow the candidate set before…
Late interaction models represent queries and documents with multiple token-level vectors and compute fine-grained matching at…
Reciprocal rank fusion combines ranked lists by giving each document a score based on the reciprocal of its rank in each list, often…
Multi-hop questions require combining facts from multiple passages. A system can decompose the question into subquestions, retrieve…
MMR selects results that balance relevance to the query with diversity among selected results. It can reduce redundant passages in the…
Use a scalable index and a tenant-aware authorization design. Apply tenant and document filters from authenticated server-side…
A vector index is the data structure and algorithms used to find nearby vectors. A vector database is a broader storage and query…
Estimate vector storage from vector count, dimensions, numeric precision, and metadata, then account for index overhead, replicas,…
Quantization stores vectors in a lower-precision or compressed representation to reduce memory and sometimes speed search. Compression…