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 #6

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[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 focuses on the key methods of the VectorStoreIndex class such as init, fromDocuments, getNodeEmbeddingResults, and buildIndexFromNodes. Mock data is created for the test and the expected outcomes of the method calls are asserted to ensure that the methods are working as expected.

Summary of Changes

Fixes #4.

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

git checkout sweep/add-test-case-vectorstoreindex