This PR adds a new test case for the VectorStoreIndex class in the LlamaIndexTS repository. The test case ensures that nodes can be added to the VectorStoreIndex and retrieved correctly.
Summary of Changes
Created a new test file, VectorStoreIndex.test.ts, in the packages/core/src/tests directory.
Imported the necessary modules and dependencies for the test case, including VectorStoreIndex and Node.
Added a test case that instantiates a VectorStoreIndex object, adds nodes to it, and retrieves them to ensure correct storage and retrieval.
Used expect statements to assert that the retrieved nodes match the nodes that were added.
Followed the existing conventions for writing tests in the codebase.
Please review and merge this PR. Thank you!
Fixes #4.
To checkout this PR branch, run the following command in your terminal:
Description
This PR adds a new test case for the VectorStoreIndex class in the LlamaIndexTS repository. The test case ensures that nodes can be added to the VectorStoreIndex and retrieved correctly.
Summary of Changes
VectorStoreIndex.test.ts
, in thepackages/core/src/tests
directory.Please review and merge this PR. Thank you!
Fixes #4.
To checkout this PR branch, run the following command in your terminal: