docs: Fix Clova embeddings example document (#22181)

- [ ] **PR title**: "Fix list handling in Clova embeddings example
documentation"
  - Description:
Fixes a bug in the Clova Embeddings example documentation where
document_text was incorrectly wrapped in an additional list.
   - Rationale
The embed_documents method expects a list, but the previous example
wrapped document_text in an unnecessary additional list, causing an
error. The updated example correctly passes document_text directly to
the method, ensuring it functions as intended.
This commit is contained in:
acho98 2024-05-28 06:31:34 +09:00 committed by GitHub
parent 577ed68b59
commit 753353411f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"document_text = [\"This is a test doc1.\", \"This is a test doc2.\"]\n", "document_text = [\"This is a test doc1.\", \"This is a test doc2.\"]\n",
"document_result = embeddings.embed_documents([document_text])" "document_result = embeddings.embed_documents(document_text)"
] ]
} }
], ],