Enhancing AI with Vector Search in RAG Systems: A Comprehensive Guide