Skip to content

Commit

Permalink
Removing small complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
ajosh0504 committed Jul 17, 2024
1 parent aa3dd72 commit b8beaea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/50-prepare-the-data/4-embed-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ return embedding.tolist()
<div>
```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)
```
</div>
</details>

0 comments on commit b8beaea

Please sign in to comment.