Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.47 KB

README.md

File metadata and controls

24 lines (20 loc) · 1.47 KB

Chat with YouTube videos using .NET and C#

This is a sample demonstrating how to ingest a transcript for a YouTube video and ask questions about it using OpenAI, or local AI models, and .NET.

Running the sample

To run the sample:

  1. Clone the app locally
  2. Get an API key for OpenAI and set a local environment variable named OPENAI_API_KEY with that key
  3. Run the project using your favorite editor, or calling dotnet run from a Terminal in the root of your project directory

You could also run this sample using a local AI model, downloaded using Ollama:

  1. Install Ollama
  2. Once installed, open a Terminal window and install the following models:
  • ollama pull llama3.2
  • ollama pull all-minilm
  1. Run the project using your favorite editor, or calling dotnet run from a Terminal in the root of your project directory

Architectural details

This sample is built using the following technology: