From 00bd7b632adf70b87c16503d4a5feb4e2fcc364b Mon Sep 17 00:00:00 2001 From: Sad Mathematician <134358999+sad-mathematician@users.noreply.github.com> Date: Sun, 7 Jul 2024 14:39:25 +0530 Subject: [PATCH] Make MetadataReplacementDemo.ipynb Clearer Current wording suggests sentences are replaced with the window "during retrieval" whereas the replacement happens after retrieval --- .../examples/node_postprocessor/MetadataReplacementDemo.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/examples/node_postprocessor/MetadataReplacementDemo.ipynb b/docs/docs/examples/node_postprocessor/MetadataReplacementDemo.ipynb index d35b141f80f2e..68e9f2b3478d3 100644 --- a/docs/docs/examples/node_postprocessor/MetadataReplacementDemo.ipynb +++ b/docs/docs/examples/node_postprocessor/MetadataReplacementDemo.ipynb @@ -16,7 +16,7 @@ "\n", "In this notebook, we use the `SentenceWindowNodeParser` to parse documents into single sentences per node. Each node also contains a \"window\" with the sentences on either side of the node sentence.\n", "\n", - "Then, during retrieval, before passing the retrieved sentences to the LLM, the single sentences are replaced with a window containing the surrounding sentences using the `MetadataReplacementNodePostProcessor`.\n", + "Then, after retrieval, before passing the retrieved sentences to the LLM, the single sentences are replaced with a window containing the surrounding sentences using the `MetadataReplacementNodePostProcessor`.\n", "\n", "This is most useful for large documents/indexes, as it helps to retrieve more fine-grained details.\n", "\n",