From 00243f5eb6d921f9a702f19e781c17dbf0960911 Mon Sep 17 00:00:00 2001 From: priyeshvpotdar <37095995+priyeshvpotdar@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:18:09 +0530 Subject: [PATCH] Fixed a bug in quickstart guide code block In the code block, loop was missing which could lead to incorrect interpretation and understanding, when referring to the official documentation. --- site/en/getstarted/quickstart.md | 1 + 1 file changed, 1 insertion(+) diff --git a/site/en/getstarted/quickstart.md b/site/en/getstarted/quickstart.md index 9642acc28..8eb5b90aa 100644 --- a/site/en/getstarted/quickstart.md +++ b/site/en/getstarted/quickstart.md @@ -97,6 +97,7 @@ print("Dim:", embedding_fn.dim, vectors[0].shape) # Dim: 768 (768,) # to demo metadata filtering later. data = [ {"id": i, "vector": vectors[i], "text": docs[i], "subject": "history"} + for i in range(len(vectors)) ] print("Data has", len(data), "entities, each with fields: ", data[0].keys())