Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaohui-wyh/blog_gpt
An AI assistant for automated metadata generation in markdown blogs, also providing content understanding, summarization, etc.
https://github.com/yaohui-wyh/blog_gpt
gpt langchain llm markdown static-site-generation
Last synced: 3 months ago
JSON representation
An AI assistant for automated metadata generation in markdown blogs, also providing content understanding, summarization, etc.
- Host: GitHub
- URL: https://github.com/yaohui-wyh/blog_gpt
- Owner: yaohui-wyh
- License: mit
- Created: 2023-06-29T23:48:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-05T07:18:13.000Z (11 months ago)
- Last Synced: 2024-06-22T08:36:11.867Z (5 months ago)
- Topics: gpt, langchain, llm, markdown, static-site-generation
- Language: Python
- Homepage:
- Size: 771 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gitpod - BlogGPT + LangChain + Gitpod
README
# 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](https://wyh.life/article/2023/07/02/llm-app-development)
## 💻 Running Locally
```shell
git clone https://github.com/yaohui-wyh/blog-gpt.git
cd blog-gpt
```Install dependencies with Poetry and activate virtual environment
```shell
poetry install
poetry shell
```Run blog_gpt.py to generate metadata for a blog post:
```shell
cd blog-gpt
export OPENAI_API_KEY=# Generate content summarization & keywords
python blog_gpt.py -f# Q&A about content
python blog_gpt.py -f -q
```### Usage Example
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
Summarize and answer questions about the BlogGPT README.md:
```plain
➜ 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.
```