From 5722249c486ee8ec9344f125698f4c0c9583f158 Mon Sep 17 00:00:00 2001 From: coolmian <36444522+coolmian@users.noreply.github.com> Date: Thu, 24 Nov 2022 16:04:53 +0800 Subject: [PATCH] fix(docs): correction document description Signed-off-by: coolmian <36444522+coolmian@users.noreply.github.com> --- docs/fundamentals/documentarray/access-attributes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/fundamentals/documentarray/access-attributes.md b/docs/fundamentals/documentarray/access-attributes.md index aae35736a87..a53898b93fa 100644 --- a/docs/fundamentals/documentarray/access-attributes.md +++ b/docs/fundamentals/documentarray/access-attributes.md @@ -22,7 +22,7 @@ As in element selector, one can use attribute selector to **get/set/delete** att | `da[..., 'id']` | all `.id` from all flattened Documents (root, chunks, and matches) in a List | | `da['@m', 'id']` | all `.id` from all Documents `.matches` | | `da[1:3, ('id', 'scores')]` | a list of two list, first is all `.id` from the first three Documents, second is all `.scores` from the first three Documents | -| `da[:, 'scores__cosine__value']` | all `.scores['cosine'].value` from the first three Documents | +| `da[1:3, 'scores__cosine__value']` | all `.scores['cosine'].value` from the first three Documents | | `da[1:3, 'embedding']`, `da[1:3].embeddings` | a NdArray-like object of the first three Documents embeddings | | `da[:, 'tensor']`, `da.tensors` | a NdArray-like object of the all top-level Documents tensors | @@ -241,4 +241,4 @@ for d in da: (10,) (10,) (10,) -``` \ No newline at end of file +```