App that uses a local language model to read books, provide summaries, and answer questions
C#
0
1 commits
updated Dec 11, 2025
A C# application that uses local language models to summarize books and answer questions about them. This project demonstrates how to combine EPUB book parsing with local language models for intelligent document analysis.
books/ directory../models/ directorybooks/meditiations.epub../models/Llama-3.2-3B-Instruct-Q4_K_M.ggufcd BookReader
dotnet run
The application presents an interactive menu with the following options:
You can modify the following settings in Program.cs:
bookPath: Path to your EPUB filemodelPath: Path to your Llama model fileLlamaService.cs (default: 8192 tokens)GpuLayerCount in LlamaService.cs if GPU acceleration is availableVersOne.Epub library to parse EPUB filesLLamaSharp for local model inferenceConsider adding:
Model loading fails: Ensure the model path is correct and the file is a valid GGUF format
Out of memory errors: Reduce the context size in LlamaService.cs
Slow performance: Consider using a smaller model or enabling GPU acceleration
Book not found: Verify the EPUB file is in the books/ directory
This is a demonstration project for educational purposes.
C#
100.0%
App that uses a local language model to read books, provide summaries, and answer questions
C#
0
1 commits
updated Dec 11, 2025
A C# application that uses local language models to summarize books and answer questions about them. This project demonstrates how to combine EPUB book parsing with local language models for intelligent document analysis.
books/ directory../models/ directorybooks/meditiations.epub../models/Llama-3.2-3B-Instruct-Q4_K_M.ggufcd BookReader
dotnet run
The application presents an interactive menu with the following options:
You can modify the following settings in Program.cs:
bookPath: Path to your EPUB filemodelPath: Path to your Llama model fileLlamaService.cs (default: 8192 tokens)GpuLayerCount in LlamaService.cs if GPU acceleration is availableVersOne.Epub library to parse EPUB filesLLamaSharp for local model inferenceConsider adding:
Model loading fails: Ensure the model path is correct and the file is a valid GGUF format
Out of memory errors: Reduce the context size in LlamaService.cs
Slow performance: Consider using a smaller model or enabling GPU acceleration
Book not found: Verify the EPUB file is in the books/ directory
This is a demonstration project for educational purposes.
C#
100.0%