LlamaIndexTS icon indicating copy to clipboard operation
LlamaIndexTS copied to clipboard

[RFC]: Add nodes paramters on fromVectorStore

Open EmanuelCampos opened this issue 2 years ago • 0 comments

Problem Statement

Currently, we aren't able to index nodes directly, just if set the nodeParser

Example case:

const nodes = new SimpleNodeParser().getNodesFromDocuments(documents)

for (let i = 0; i < nodes.length; i++) {
  nodes[i].id_ = i.toString();
}
  
// Split text and create embeddings. Store them in a VectorStoreIndex
const index = await VectorStoreIndex.fromVectorStore(nodes, {
  vectorStore,
})

Possible solution

https://github.com/run-llama/LlamaIndexTS/pull/411 Would be interesting maybe on fromVectorStore if we add the nodes parameter?

EmanuelCampos avatar Jan 20 '24 15:01 EmanuelCampos