Reputation: 191
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.
Upvotes: 1
Views: 4500
Reputation: 64
Check the version of your llama_index if you are using the current version, kindly use :
Upvotes: 2
Reputation: 191
I found the answer. You can solve this using
from llama_index.core.node_parser import SimpleNodeParser
Upvotes: 7