From ad87584c35f78551b3b02b2322c720b173584860 Mon Sep 17 00:00:00 2001 From: Matt Royer Date: Thu, 6 Apr 2023 13:45:45 -0600 Subject: [PATCH] Fix 'embeddings is not defined' (#2468) Nothing major. The docs just give an error when you try to use `embeddings` instead of `llama`. --- docs/modules/models/text_embedding/examples/llamacpp.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/models/text_embedding/examples/llamacpp.ipynb b/docs/modules/models/text_embedding/examples/llamacpp.ipynb index 3a07ad1355..24b8179f10 100644 --- a/docs/modules/models/text_embedding/examples/llamacpp.ipynb +++ b/docs/modules/models/text_embedding/examples/llamacpp.ipynb @@ -51,7 +51,7 @@ "metadata": {}, "outputs": [], "source": [ - "query_result = embeddings.embed_query(text)" + "query_result = llama.embed_query(text)" ] }, { @@ -60,7 +60,7 @@ "metadata": {}, "outputs": [], "source": [ - "doc_result = embeddings.embed_documents([text])" + "doc_result = llama.embed_documents([text])" ] } ],