ModuleNotFoundError: No module named 'llama_index.node_parser'

106 views Asked by At

I want to import SimpleNodeParser from llama_index.node parser.

from llama_index.node_parser import SimpleNodeParser

But when I run this I'm getting an error:

ModuleNotFoundError: No module named 'llama_index.node_parser'

Help me to solve this.

I want to import SimpleNodeParser from llama_index.node parser.

3

There are 3 answers

0
Sanduni Devindya On

I found the answer. You can solve this using

from llama_index.core.node_parser import SimpleNodeParser
0
Sandip Dutta On

from llama_index.core.node_parser import SimpleNodeParser ?

1
Siddhartha Sengupta On

Check the version of your llama_index if you are using the current version, kindly use :

from llama_index.core.node_parser import SimpleNodeParser