Log in
Log into community
Find answers from the community
s
F
Y
a
P
3,278
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated last year
0
Follow
hi all for the line below new index
hi all for the line below new index
0
Follow
a
autratec
last year
ยท
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
last year
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
last year
yes. i have this line in my progrma. thanks.
a
autratec
last year
Tried . Need to install pypdf first. And works.
Add a reply
Sign up and join the conversation on Discord
Join on Discord