From 6c9ff3158c108f4a5decdaaa6c595dda675ee3e4 Mon Sep 17 00:00:00 2001 From: Scott W Harden Date: Tue, 20 Feb 2024 08:56:13 -0500 Subject: [PATCH] docs: improve GetEmbeddings page If EmbeddingMode is not set to true, GetEmbeddings() throws an exception --- docs/Examples/GetEmbeddings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Examples/GetEmbeddings.md b/docs/Examples/GetEmbeddings.md index e827271f..d9dc90fc 100644 --- a/docs/Examples/GetEmbeddings.md +++ b/docs/Examples/GetEmbeddings.md @@ -14,7 +14,7 @@ public class GetEmbeddings { Console.Write("Please input your model path: "); string modelPath = Console.ReadLine(); - var embedder = new LLamaEmbedder(new ModelParams(modelPath)); + var embedder = new LLamaEmbedder(new ModelParams(modelPath)) { EmbeddingMode = true }; while (true) {