Semantically chunk documents with overlap control, boundary detection and metadata preservation for RAG pipelines