A Langchain application that uses OpenAI, SerpAPI, Nubela API to find information and make inferences about someone using only their name.
APIs used:
- OpenAI
- Nubela
- 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.
-
First clone this repository using the command:
git clone https://github.com/omkmorendha/Langchain_Profile_summariser
-
Create a vitrual enviornment using
pipenv shell
-
Install necessary libraries
pipenv install
-
Then create an enviornmental variable file(.env) and link it
-
Add your API keys for the following APIS:
- OpenAI API
- SerpAPI
- Nebula API
-
Run the app.py file