Skip to content

We use Brave to power Mixtal and build an intelligent Blog generator

Notifications You must be signed in to change notification settings

tyu008/mistral_hackthon_blog_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Brave is all Mistral need for Automatic Blog Generation

Motivation

One of the best ways to learn something is reading a good blog. In this application, we use Mistral and Brave to build a automatic tool, to generate a blog with texts and images for any interested topic from the user.

Architecture

image

Highlight

Hierachical Retrieval Augmented Generation

Vanilla RAG is far from enough to generate a high-qaulity blog covering much details of the topics. So we build a Hierachical Retrieval Augmented Generation (HRAG) architeture. In the first layer, we use vanilla RAG to generate an outline with several headlines. In the second layer, we use each headline to conduct another round RAG to complete each section. At last, we merge all the sections into a holistic Blog.

Our HRAG is related with the sub-query engine in Llama-Index. But different sub-query engine solely relying on LLM to decompose the query, we use RAG (LLM + Search Engine) to decompose the query. Benefit from the poweful knoweledge of search engine, our decomposition is more meaningful.

Parallel Async LLM call

Generated Blogs

Screenshot 2024-03-24 at 11 50 56 AM Screenshot 2024-03-24 at 11 03 25 AM Screenshot 2024-03-24 at 11 05 19 AM Screenshot 2024-03-24 at 11 25 50 AM

About

We use Brave to power Mixtal and build an intelligent Blog generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages