Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ZadokJoshua/betakads-avalonia-app

Anki Generator Powered by AI || Best AI project - The Great .NET 8 Hack
https://github.com/ZadokJoshua/betakads-avalonia-app

Last synced: 27 days ago
JSON representation

Anki Generator Powered by AI || Best AI project - The Great .NET 8 Hack

Awesome Lists containing this project

README

        

# ⚡ Betakads
**AI-Powered Anki Flashcard Generator**

Betakads simplifies the creation of Anki flashcards using AI. Choose a data source—either a PDF document or a YouTube video. The app extracts text from these sources, whether it's video captions or content from a PDF. Specify the number of flashcards you need, and Betakads will generate them, saving the results in a .txt format that is ready for easy import into Anki for seamless study and review.

## Getting Started

1. **Download the Model**
Download the `phi3-mini-4k-instruct-onnx` model to your local machine using the command:
```bash
git clone https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx
```

2. **Configure the Model Path**
Insert the absolute path to the folder containing the `.onnx` file into the designated placeholder in the `ServiceCollectionExtensions.cs` file:
```csharp
public static void AddAIService(this IServiceCollection collection)
{
string modelPath = "";
collection.AddSingleton(new Model(modelPath)).AddSingleton();
collection.AddTransient();
}
```

#
![betakads window-initial state](/Images/Betakads-Fluent1.png)
![betakads window-result](/Images/Betakads-Fluent2.png)
#
**Prompt Reference:**
- [Casting a spell on ChatGPT: Let it write Anki cards for you — A Prompt Engineering Case - Jarrett Ye](https://medium.com/@JarrettYe/casting-a-spell-on-chatgpt-let-it-write-anki-cards-for-you-a-prompt-engineering-case-fd7d577b9d94)