The community member is asking if it is possible to specify a node parser at the time of insertion into an index, and if not, what is the recommended way of handling the insertion of multiple different document types that require different node parsers. They have several different node parsers optimized for chunking different types of documents and need to be able to hot-swap them out depending on the document type without rebuilding the index from scratch.
The comments suggest that the community member should parse the nodes before inserting them into the index, using a node_parser to process the documents and then inserting the resulting nodes into the index. One community member suggests removing the node_parser from the transformations array, while another says it could be kept but would not be used.
There is no explicitly marked answer in the provided information.
Is it possible to specify a node parser at the time of insertion into an index? If not, what is the recommended way of handling the insertion of multiple different document types that require different node parsers?
I have several different node parsers that are optimized for chunking different types of documents and I need to be able to hot-swap them out depending on which type of document I am inserting without rebuilding the index from scratch every time. I am assuming that creating an index is not cheap. What is the recommended way of doing this?