| 
					
				 | 
			
			
				@@ -1,8 +1,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # Technical Blog Generator with RAG and Llama 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-This project provides a practical recipe for building an AI-powered technical blog generator leveraging **Retrieval-Augmented Generation (RAG)**. It demonstrates how to combine the power of a Llama large language model (LLM) with a local, in-memory vector database (Qdrant) to synthesize accurate, relevant, and well-structured technical blog posts from your existing documentation. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+This project provides a practical recipe for building an AI-powered technical blog generator leveraging LLama 4. It demonstrates how to combine the power of a Llama4 with a local, in-memory vector database (Qdrant) to synthesize accurate, relevant, and well-structured technical blog posts from your existing documentation. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-## Why RAG for Blog Generation? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+##  Features : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Integrating a Llama LLM with a vector database via a RAG approach offers significant advantages over using an LLM alone: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -22,38 +22,6 @@ The system follows a standard RAG pipeline, adapted for local development: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+------------------+     +--------------------+     +-------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| Technical Docs   | --> | Data Chunking &    | --> | Embedding Model   | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| (Raw Text Files) |     | Preprocessing      |     | (SentenceTrans.)  | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+------------------+     +--------------------+     +-------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-|                                                    | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-v                                                    v 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+                            +-----------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| In-Memory Qdrant DB   | <--------------------------| Vector Embeddings     | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| (Knowledge Base)      | (Store Chunks & Embeddings)|                       | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+                            +-----------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-^ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| (Query for relevant chunks) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| User Input (Topic)    | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-v 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+     +-------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| Llama API             | <---| System Prompt     | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| (Blog Generation)     |     | + Retrieved Chunks | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+     +-------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-v 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| Generated Technical   | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-| Blog Post (Markdown)  | 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-+-----------------------+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ## Prerequisites 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 * Python 3.8 or higher 
			 |