Skip to content

An example of chatting with a YouTube video using .NET, C#, OpenAI, and other AI models.

License

Notifications You must be signed in to change notification settings

jmatthiesen/dotnet-ai-youtube-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

An example of chatting with a YouTube video using .NET, C#, OpenAI, and other AI models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages