This PR adds a test case for the VectorStoreIndex class in the LlamaIndexTS repository. The test case ensures that nodes are stored and retrieved correctly, and also tests the functionality of various methods in the VectorStoreIndex class.
Summary of Changes
Added a new test case for the VectorStoreIndex class in the packages/core/src/tests/CallbackManager.test.ts file.
The test case instantiates a VectorStoreIndex object, adds nodes to it, and retrieves them to ensure correct storage and retrieval.
The test case also tests the various methods of the VectorStoreIndex class to ensure they are functioning as expected.
Mock nodes and embeddings are created for testing purposes.
The test case is added to the existing test suite for the project.
Please review and merge this PR to improve the test coverage and reliability of the VectorStoreIndex class.
Fixes #4.
To checkout this PR branch, run the following command in your terminal:
Description
This PR adds a test case for the VectorStoreIndex class in the LlamaIndexTS repository. The test case ensures that nodes are stored and retrieved correctly, and also tests the functionality of various methods in the VectorStoreIndex class.
Summary of Changes
Please review and merge this PR to improve the test coverage and reliability of the VectorStoreIndex class.
Fixes #4.
To checkout this PR branch, run the following command in your terminal: