Skip to content

A Langchain application that uses OpenAI API, SerpAPI, LinkedIn API to find information and make inferences about someone using only their name

Notifications You must be signed in to change notification settings

omkmorendha/Langchain_Profile_summariser

Repository files navigation

Langchain Profile Summariser

A Langchain application that uses OpenAI, SerpAPI, Nubela API to find information and make inferences about someone using only their name.

APIs used:

  1. OpenAI
  2. Nubela
  3. SerpAI

We first input a name to a web-application that I created using Flask, which is then passed to the SerpAPI that scrapes the Internet to find a LinkedIn profile page associated with that name, the profile page is than sent to Nubela API that converts this into a JSON, which is then passed to OpenAI API that gives us some inferences about the person such as a short summary, some interesting facts, what could be a potential ice-breaker with that person and finally their interests.

All of the above steps are carried out by a Langchain agent.

Set-up

  1. First clone this repository using the command:

    git clone https://github.com/omkmorendha/Langchain_Profile_summariser
    
  2. Create a vitrual enviornment using

    pipenv shell
    
  3. Install necessary libraries

    pipenv install
    
  4. Then create an enviornmental variable file(.env) and link it

  5. Add your API keys for the following APIS:

    1. OpenAI API
    2. SerpAPI
    3. Nebula API
  6. Run the app.py file

Final Result

Picture-1

picture-2

picture-3

About

A Langchain application that uses OpenAI API, SerpAPI, LinkedIn API to find information and make inferences about someone using only their name

Topics

Resources

Stars

Watchers

Forks