mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-06 21:20:33 +00:00
Fix 'embeddings is not defined' (#2468)
Nothing major. The docs just give an error when you try to use `embeddings` instead of `llama`.
This commit is contained in:
parent
fd69cc7e42
commit
ad87584c35
@ -51,7 +51,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"query_result = embeddings.embed_query(text)"
|
"query_result = llama.embed_query(text)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -60,7 +60,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"doc_result = embeddings.embed_documents([text])"
|
"doc_result = llama.embed_documents([text])"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user