Find answers from the community

Updated 4 months ago

Settings

In below code, why we need to apply sentencesplitter transformation when we already set Settings.chunk_size as some value. Code is taken from official documentation - # Global settings
from llama_index.core import Settings

Settings.chunk_size = 512

Local settings

from llama_index.core.node_parser import SentenceSplitter

index = VectorStoreIndex.from_documents(
documents, transformations=[SentenceSplitter(chunk_size=512)]
)
L
1 comment
Setting the chunk size in setting funny enough only changes Settings.node_parser
Add a reply
Sign up and join the conversation on Discord