You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using LangChain.Chains;
using LangChain.Providers.Downloader;
using LangChain.Providers.HuggingFace.Downloader;
using LangChain.Providers.LLamaSharp;
// get model path
var modelPath = await HuggingFaceModelDownloader.Instance.GetModel("TheBloke/Thespis-13B-v0.5-GGUF", "thespis-13b-v0.5.Q2_K.gguf", "main");
// load model
var model = LLamaSharpModelInstruction.FromPath(modelPath);
model.PromptSent += Console.Write;
model.TokenGenerated += Console.Write;
// building a chain
var prompt = @"
You are an AI assistant that greets the world.
World: Hello, Assistant!
Assistant:";
var chain =
Chain.Set(prompt, outputKey: "prompt")
| Chain.LLM(model, inputKey: "prompt");
chain.Run().Wait();
Describe the bug
I tried your example in Getting-started
I'm getting a CS0103 compiler error - it can't find LLamaSharpModelInstruction
Error (active) CS0103 The name 'LLamaSharpModelInstruction' does not exist in the current context
So is it because
'LLamaSharpModelInstruction'
is called something else now?Steps to reproduce the bug
Expected behavior
I can compile and run the console app.
Screenshots
NuGet package version
The text was updated successfully, but these errors were encountered: