LlamaIndexTS
LlamaIndexTS copied to clipboard
[RFC]: Add nodes paramters on fromVectorStore
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?