A corpus is the collection of text chunks encoded to build a retrieval index. If you replace the sentence-transformer encoder, re-encode every chunk: embeddings from different models are not directly comparable. section 4.5.3
Choose the index layer to match corpus scale:
- Use a flat NumPy array for a prototype with tens of thousands of chunks; consider FAISS for hundreds of thousands or a vector database for multi-tenant production with millions. section 4.5.3





