sweepai-dev / LlamaIndexTS

LlamaIndex is a data framework for your LLM applications
https://ts.llamaindex.ai/
MIT License
0 stars 0 forks source link

Add test case for VectorStoreIndex class #19

Closed sweep-nightly[bot] closed 1 year ago

sweep-nightly[bot] commented 1 year ago

Description

This PR adds a test case for the VectorStoreIndex class in the packages/core/src/tests directory. The test case validates the functionality of the VectorStoreIndex class methods, including the constructor, init, fromDocuments, asRetriever, and asQueryEngine. Mock data is used to simulate the behavior of these methods and assert the expected outcomes. This ensures that the VectorStoreIndex class is working as expected and any future changes to the class will not break its functionality.

Summary

Fixes #4.

To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-test-case-vectorstoreindex_3