Sanduni Devindya
Sanduni Devindya

Reputation: 191

ModuleNotFoundError: No module named 'llama_index.node_parser'

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

Answers (3)

Siddhartha Sengupta
Siddhartha Sengupta

Reputation: 64

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

from llama_index.core.node_parser import SimpleNodeParser

Upvotes: 2

Sanduni Devindya
Sanduni Devindya

Reputation: 191

I found the answer. You can solve this using

from llama_index.core.node_parser import SimpleNodeParser

Upvotes: 7

Sandip Dutta
Sandip Dutta

Reputation: 71

from llama_index.core.node_parser import SimpleNodeParser ?

Upvotes: 2

Related Questions