Ciao a tutti , stò provando ad usare l'esempio seguente :
ho aggiunto come richiesto il package Microsoft.KernelMemory.WebClient ,
using Microsoft.KernelMemory;
// Connected to the memory service running locally
var memory = new MemoryWebClient("http://127.0.0.1:9001/");
// Import a web page
await memory.ImportWebPageAsync(
"https://raw.githubusercontent.com/microsoft/kernel-memory/main/README.md",
documentId: "doc02");
// Wait for ingestion to complete, usually 1-2 seconds
Console.WriteLine("Waiting for memory ingestion to complete...");
while (!await memory.IsDocumentReadyAsync(documentId: "doc02"))
{
await Task.Delay(TimeSpan.FromMilliseconds(1500));
}
// Ask a question
var answer = await memory.AskAsync("Is there a Kernel Memory community and how can I join?");
Console.WriteLine($"\nAnswer: {answer.Result}");
che potete trovare qua "https://microsoft.github.io/kernel-memory/quickstart/csharp"
provando ad eseguire l'applicazione mi ritorna il seguente errore :
"Microsoft.KernelMemory.KernelMemoryWebException: 'Impossibile stabilire la connessione. Rifiuto persistente del computer di destinazione. (127.0.0.1:9001)"
ho provato ad effettuare un ping ed il webserver risulta inesistente : "Impossibile trovare l'host http://127.0.0.1:9001. Verificare che il nome sia corretto e riprovare."
ho provato a sospendere l'antivirus ma non è giovato ,
qualche suggerimento?
grazie