Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
hi all for the line below new index
hi all for the line below new index
Inactive
0
Follow
At a glance
a
autratec
2 years ago
Β·
hi all for the line below: new_index = VectorStoreIndex.from_documents(
documents,
service_context=service_context,
)
can it handle PDF directly, or i need to convert it to csv or txt first ? thanks
H
a
3 comments
Share
Open in Discord
H
HABBYMAN
2 years ago
you should load the data first with a document loader that can handle pdf, then this works fine.
example:
Plain Text
Copy
documents = SimpleDirectoryReader("./documents").load_data()
a
autratec
2 years ago
yes. i have this line in my progrma. thanks.
a
autratec
2 years ago
Tried . Need to install pypdf first. And works.
Add a reply
Sign up and join the conversation on Discord
Join on Discord