eranmi commited on
Commit
bf161b1
·
1 Parent(s): cb88d38

added readme

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 📚 From Text to Visuals: Auto-Generating LaTeX Beamer Presentations with GenAI
2
+
3
+ In this project, we explore how generative AI can automate the creation of professional-looking presentation slides—directly from extensive collections of PDF documents.
4
+
5
+ ---
6
+
7
+ ## 🧠 Use Case
8
+
9
+ Creating slide decks from dense documents (like whitepapers or scientific articles) is a time-consuming and cognitively heavy task. Our goal is to streamline this process using generative AI.
10
+
11
+ We built an AI assistant that transforms document collections into LaTeX Beamer presentations—complete with structure, content, and visuals—based on a user-defined topic.
12
+
13
+ ---
14
+
15
+ ## 🔍 How It Works
16
+
17
+ ### 💿 Database Creation
18
+ We start by creating a vector database from a collection of PDF documents (e.g., arXiv papers). Each document is processed to extract text chunks, and for each chunk, we store:
19
+ * **Embeddings** of the text from the file
20
+ * **Associated metadata** (like images, their captions, how many images there are)
21
+
22
+ ### 🗣️ User Prompt
23
+
24
+ A user enters a natural language query like:
25
+
26
+ > "I need a presentation about AI agents."
27
+
28
+ ### 📄 Document Retrieval
29
+
30
+ We use **Chroma** as our vector database to retrieve the most relevant PDF documents based on the query.
31
+
32
+ ### 🧠 Content Understanding
33
+
34
+ Using **Gemini 2.0 Flash** (`google-genai==1.7.0`), the assistant analyzes the retrieved content and extracts the most relevant ideas and insights.
35
+
36
+ ### 🎞️ Slide Generation (LaTeX Beamer)
37
+
38
+ The model outputs fully formatted compilable LaTeX code following a clear and consistent structure:
39
+
40
+ - **Introduction**: Topic overview and motivation  
41
+ - **Main Content**: 2–4 slides, each presenting a core idea  
42
+ - **Summary**: Key takeaways  
43
+
44
+ It also incorporates relevant images extracted from the documents, organizing them into LaTeX Beamer-friendly layouts (e.g., *Core Idea 2* and *Core Idea 3* slide formats).