Browse Source

docs: improve GetEmbeddings page

If EmbeddingMode is not set to true, GetEmbeddings() throws an exception
pull/525/head
Scott W Harden 1 year ago
parent
commit
6c9ff3158c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/Examples/GetEmbeddings.md

+ 1
- 1
docs/Examples/GetEmbeddings.md View File

@@ -14,7 +14,7 @@ public class GetEmbeddings
{ {
Console.Write("Please input your model path: "); Console.Write("Please input your model path: ");
string modelPath = Console.ReadLine(); string modelPath = Console.ReadLine();
var embedder = new LLamaEmbedder(new ModelParams(modelPath));
var embedder = new LLamaEmbedder(new ModelParams(modelPath)) { EmbeddingMode = true };


while (true) while (true)
{ {


Loading…
Cancel
Save