Explain how vector databases work and how you would design a retrieval-augmented generation (RAG) pipeline for Tellius use cases.