waseemhnyc / LinkedIn-to-Portfolio-Site-Generator

This project is a Python script that scrapes a Linkedin PDF, generates a customized portfolio site using OpenAI's GPT-4 model with the help of LangChain and deploy the site to Vercel.
https://twitter.com/waseemhnyc/status/1653911884314169344?s=20
MIT License
24 stars 2 forks source link
gpt-4 langchain nextjs openai python

Linkedin to Portfolio Site Generator

This project is a Python script that scrapes your Linkedin PDF and generates a customized portfolio site using OpenAI's GPT-4 model.

We interact with the GPT-4 model using LangChain.

  1. Embed the Linkedin PDF
  2. Store the embeddings into a Chroma vector database
  3. Query that database to get relevant information
  4. Generate text with OpenAI's GPT-4
  5. With the generated text we use the Next JS portfolio site, powered by Nextra, to create the main portfolio file
  6. Build and deploy site on Vercel

Demo

For this demo, I used LangChain's Co-founder and CEO Harrison Chase's LinkedIn.

You can find his deployed site here: https://harrison-six.vercel.app/

Video: https://www.youtube.com/watch?v=jY5UnSBq8sI

Demo Video

Prerequisites

Before you begin, ensure you have met the following requirements:

Getting Started

Clone the repo

git clone https://github.com/waseemhnyc/LinkedIn-to-Portfolio-Site-Generator

Create a virutalenv and source the environment

python3 -m venv myenv
source venv/bin/activate

Install the necessary libraries

pip install -r requirements.txt

Create a .env file and input your OpenAI API Key in the file

cp .env.example .env

Usage

To run the program, run the following command in the terminal:

python main.py

Ways to Improve

Questions or Get in Touch

License

This project is licensed under the MIT License - see the LICENSE file for details.