You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get insights from YouTube videos with YTAI, an LLM-based app that allows you to summarize or even ask questions and receive answers about them! tailors YouTube video summaries to your needs, offering a custom prompt feature for summaries exactly how you want them.
4
+
5
+
Check out the project on [GitHub](https://github.com/sudoleg/ytai) for more information! Also, if you like the app, I would be very happy about a star :star:
6
+
7
+
## Summary
8
+
9
+
If you have a relatively short video (<30 minutes), you can use the `Summary` part of the application. It allows you to provide **a custom prompt** to tailor the summary to your needs. As the video is short anyways, you could, for example, provide your questions here. Moreover, you can save your responses (if you are running the app locally).
10
+
11
+
Or you could ask to list all the topics in the video and then ask specific questions about them using the other part of the application (see below) 😉
12
+
13
+
## Q&A - Chat
14
+
15
+
The `Chat` part of the application is best suited when you have a longer video you have specific questions about. It is more efficient and less cost consuming, as only the relevant parts of the video are provided to the language model. Moreover, once you process a video, you can Q&A it whenever you want (as long as you don't remove the volume accidentally 😅).
16
+
17
+
I've found that the chat function works especially well for videos with manual transcripts but it's also really good for videos with autogernerated ones. Personally, I use the chat feature for lengthy podcasts with timestamps, like podcasts from [Andrew Huberman](https://www.youtube.com/@hubermanlab), [Lex Fridman](https://www.youtube.com/@lexfridman) or [Chris Williamson](https://www.youtube.com/@ChrisWillx). You can just copy the title of the section/timestamp and get a good overview of the topics discussed.
You can either provide a question or just a topic from the video. If you ask a question, try to be as specific as possible. Your question should adress a specific topic or a passage from the video.
4
+
5
+
**Don't ask for a summary! This part of the application is not designed for that! Use the `Summary` part instead!**
6
+
7
+
## General tips
8
+
9
+
- be specific
10
+
- be concise
11
+
- Don't include instructions, like 'explain in detail' or 'answer from a perspective of X' etc.
12
+
13
+
## Important notice ❗
14
+
15
+
While this part of the application is designed to assist with your questions using advanced technology, it relies on a large language model (LLM) and therefore may produce inaccurate responses. LLMs may reflect biases present in its training data, leading to potentially inappropriate or unfair answers. The model might hallucinate, misinterpret questions, provide vague responses and does not possess true understanding. Responses might inadvertently include sensitive or inappropriate content. Please acknowledge these limitations and use the provided information with caution and critical judgment.
Copy file name to clipboardExpand all lines: README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,14 @@
6
6
7
7
## Features :sparkles:
8
8
9
-
YTAI summarizes YouTube videos and is not the first project to do that. However, it offers some features that other similar projects and AI summarizers on the internet don't:
9
+
YTAI lets you **summarize and chat (Q&A)** with YouTube videos. Its features include:
10
10
11
-
-**provide a custom prompt**:writing_hand:
12
-
- you can tailor the response to your needs by providing a custom prompt or just use the default summarization
11
+
-**provide a custom prompt for summaries**:writing_hand:
12
+
- you can tailor the summary to your needs by providing a custom prompt or just use the default summarization
13
13
-**automatically save summaries**:open_file_folder:
14
14
- the summaries can be automatically saved in the directory where you run the app. The summaries will be available under `<YT-channel-name>/<video-title>.md`
15
+
-**create your own knowledge base**:floppy_disk:
16
+
- once you process a video, you can chat with it at any time!
15
17
-**choose from different OpenAI models**:robot:
16
18
- currently available: gpt-3.5-turbo, gpt-4 (turbo), gpt-4o
17
19
- by choosing a different model, you can summarize even longer videos and potentially get better responses
@@ -24,13 +26,23 @@ YTAI summarizes YouTube videos and is not the first project to do that. However,
24
26
25
27
No matter how you choose to run the app, you will first need to get an OpenAI API-Key. This is very straightforward and free. Have a look at [their instructions](https://platform.openai.com/docs/quickstart/account-setup) to get started.
26
28
27
-
### build & run with Docker
29
+
### build & run with Docker (or docker-compose)
30
+
31
+
1. make sure to provide an OpenAI API key (l. 43 in [docker-compose.yml](docker-compose.yml))
32
+
2. adjust the path to save the summaries (l. 39 in [docker-compose.yml](docker-compose.yml))
Copy file name to clipboardExpand all lines: config.json
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@
16
16
"model": "The OpenAI API is powered by a diverse set of models with different capabilities and price points. Read more at https://platform.openai.com/docs/models/overview",
17
17
"temperature": "In short, the lower the temperature, the more deterministic the results in the sense that the highest probable next token is always picked. Increasing temperature could lead to more randomness, which encourages more diverse or creative outputs. Read more at https://platform.openai.com/docs/guides/text-generation/how-should-i-set-the-temperature-parameter.",
18
18
"top_p": "If you use Top P it means that only the tokens comprising the top_p probability mass are considered for responses, so a low top_p value selects the most confident responses. This means that a high top_p value will enable the model to look at more possible words, including less likely ones, leading to more diverse outputs. Read more at https://www.promptingguide.ai/introduction/settings",
19
-
"saving_responses": "Whether to save responses in the directory, where you run the app. The responses will be saved under '<YT-channel-name>/<video-title>.md'."
19
+
"saving_responses": "Whether to save responses in the directory, where you run the app. The responses will be saved under '<YT-channel-name>/<video-title>.md'.",
20
+
"chunk_size": "A larger chunk size increases the amount of context provided to the model to answer your question. However, it may be less relevant than with a small chunk size, as smaller chunks can encapsulate more semantic meaning. I would reccommend to use a smaller chunk size for shorter and a larger one for longer videos (> 1h).",
21
+
"preprocess_checkbox": "By enabling this, the original transcript gets preprocessed. This can greatly improve the results, especially for videos with automatically generated transcripts. However, it results in higher costs, as the whole transcript get's processed by gpt3.5-turbo. Also, the preprocessing will take a substantial amount of time.",
22
+
"selected_video": "Once you process a video, it gets saved in a database. You can chat with it at any time, without processing it again! Tip: you may also search for videos by typing (parts of) its title."
0 commit comments