mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
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:
parent
577ed68b59
commit
753353411f
@ -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)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user