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.
pull/22215/head
acho98 3 months ago committed by GitHub
parent 577ed68b59
commit 753353411f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -58,7 +58,7 @@
"outputs": [],
"source": [
"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)"
]
}
],

Loading…
Cancel
Save