✅ Create a method insertDocument(const std::string& docId, const std::string& text) which:
Tokenizes the input text (you can split on whitespace).
Looks up word vectors from vectorStorage for each token.
Computes a mean-pooled vector.
Inserts the vector into the HNSW index (alg_hnsw->addPoint(...)).
Stores the mapping from docId → text (in a new std::unordered_map<std::string, std::string> or external file).
✅ Create a method insertDocument(const std::string& docId, const std::string& text) which: