Table of Contents

Property IsHit

Namespace
LMKit.Retrieval.Events
Assembly
LM-Kit.NET.dll

IsHit

Gets whether the cache was hit (true) or missed (false).

public bool IsHit { get; }

Property Value

bool

Examples

pdfChat.CacheAccessed += (sender, e) =>
{
    if (e.IsHit)
    {
        Console.WriteLine($"Loaded \"{e.DocumentName}\" from cache.");
    }
    else
    {
        Console.WriteLine($"Cache miss for \"{e.DocumentName}\". Importing document...");
    }
};
Share