Find answers from the community

s
F
Y
a
P
Updated 9 months ago

Noob question: What is the practical

Noob question: What is the practical difference between working with documents vs. working with nodes?

For example:

index = VectorStoreIndex.from_documents(documents, service_context = service_context)

vs.

index = VectorStoreIndex(nodes, service_context = service_context)

Are there significant (dis)advantages to each?
L
1 comment
documents will get chunked by the node parser/text splitter attached to the service context

nodes will not be chunked (usually this means you already chunked your data)
Add a reply
Sign up and join the conversation on Discord