Find answers from the community

Updated 11 months ago

For this one:

For this one:

node_parser = SentenceWindowNodeParser.from_defaults(
window_size=3,
window_metadata_key="window",
original_text_metadata_key="original_text",
)

Is there a "best practice" for an "ideal" value of "window_size"? As per the doc, the default is 5 and the example uses 3 - https://docs.llamaindex.ai/en/stable/examples/node_postprocessor/MetadataReplacementDemo.html

What factors should one consider to arrive at this number?
L
1 comment
Vibes 😎 (i.e. trial and error). The default is actually 3, whoops
Add a reply
Sign up and join the conversation on Discord