Skip to content

An AI assistant for automated metadata generation in markdown blogs, also providing content understanding, summarization, etc.

License

Notifications You must be signed in to change notification settings

yaohui-wyh/blog_gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogGPT

An AI assistant for automated metadata generation in markdown blogs (e.g. Jekyll/Hexo), also providing content understanding, summarization, etc.

Developer's note: A Hands-on Journey to a working LangChain LLM Application

💻 Running Locally

git clone https://github.com/yaohui-wyh/blog-gpt.git
cd blog-gpt

Install dependencies with Poetry and activate virtual environment

poetry install
poetry shell

Run blog_gpt.py to generate metadata for a blog post:

cd blog-gpt
export OPENAI_API_KEY=<openai-key>

# Generate content summarization & keywords
python blog_gpt.py -f <path-to-markdown-file>

# Q&A about content
python blog_gpt.py -f <path-to-markdown-file> -q <question>

Usage Example

Open in Gitpod

Summarize and answer questions about the BlogGPT README.md:

➜ python blog_gpt.py -f ../README.md | jq
{
  "summary": "BlogGPT is an AI assistant that can generate metadata for markdown blogs, as well as provide content understanding and summarization. To use it, clone the repository, install dependencies, and run blog_gpt.py.",
  "keywords": "AI, metadata, markdown, blog, summarization"
}

➜ python blog_gpt.py -f ../README.md -q "can blog_gpt generate keywords"
Yes, blog_gpt can generate keywords.

About

An AI assistant for automated metadata generation in markdown blogs, also providing content understanding, summarization, etc.

Topics

Resources

License

Stars

Watchers

Forks

Languages