File size: 1,275 Bytes
6aca19c
 
 
 
 
 
296a442
6aca19c
 
 
 
 
 
 
 
d356ba7
 
 
6aca19c
 
 
 
 
 
 
 
 
 
 
 
d356ba7
6aca19c
d356ba7
6aca19c
 
 
 
d356ba7
 
 
6aca19c
 
 
 
d356ba7
6aca19c
d356ba7
6aca19c
 
 
 
d356ba7
6aca19c
d356ba7
296a442
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: YouTube to LinkedIn Post Converter
emoji: πŸŽ₯
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.29.0
app_file: app.py
pinned: false
license: mit
---

# YouTube to LinkedIn Post Converter

This application converts YouTube video content into professional LinkedIn posts using AI-powered content enhancement and RAGAS evaluation metrics.

## Features

- πŸŽ₯ YouTube transcript extraction
- ✨ AI-powered content enhancement
- πŸ“Š RAGAS evaluation metrics
- πŸ”„ Automatic content verification
- πŸ“± Professional LinkedIn post formatting

## Models

The application uses three embedding models for comparison:
- OpenAI's text-embedding-3-small
- Base MPNet (sentence-transformers/all-mpnet-base-v2)
- Fine-tuned MPNet (Shipmaster1/finetuned_mpnet_matryoshka_mnr)

## Evaluation Metrics

- Faithfulness: How well answers align with context
- Answer Relevancy: How relevant answers are to questions
- Context Recall: How well context covers required information
- Context Precision: How focused and precise the context is

## Usage

1. Enter a YouTube URL
2. Wait for transcript extraction
3. Review enhanced content
4. Get your professional LinkedIn post

## Installation

```bash
pip install -r requirements.txt
python app.py
```

## License

MIT License