From b8beaeadf3181e4a0bd3fc018b87a05681bff741 Mon Sep 17 00:00:00 2001 From: ajosh0504 Date: Tue, 16 Jul 2024 20:23:03 -0700 Subject: [PATCH] Removing small complexity --- docs/50-prepare-the-data/4-embed-data.mdx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/50-prepare-the-data/4-embed-data.mdx b/docs/50-prepare-the-data/4-embed-data.mdx index b118667..c9fe502 100644 --- a/docs/50-prepare-the-data/4-embed-data.mdx +++ b/docs/50-prepare-the-data/4-embed-data.mdx @@ -36,9 +36,8 @@ return embedding.tolist()
```python for doc in split_docs: - temp = doc.copy() - temp["embedding"] = get_embedding(temp["body"]) - embedded_docs.append(temp) + doc["embedding"] = get_embedding(doc["body"]) + embedded_docs.append(doc) ```
\ No newline at end of file