This is a simple web application made using ReactJS and OpenAI API to extract the most relevant & important keywords from a given text input.
- ReactJS
- Chakra UI
- OpenAI API
- Vite
Live Site URL: https://ai-keyword-extractor-openai.vercel.app
- Extracts keywords from text input using OpenAI's completions GPT-3 model (text-davinci-003).
- Show proper toast whenever required. Also added the copy to clipboard functionality.
- Displays the extracted keywords in a responsive and user-friendly way.
To use AI Keyword Extractor, follow these steps:
- Clone this repository to your local machine.
- Open a terminal in the project directory.
- Run
yarn install
to install the necessary dependencies. - Create a file named
.env
in the root directory of the project with the following content:
VITE_OPENAI_API_KEY='<your OpenAI API key>'
VITE_OPENAI_API_URL='https://api.openai.com/v1/completions'
You can obtain your OpenAI API key by following the instructions here
- Run
yarn run dev
to start the development server. - Open a web browser and go to http://localhost:3000.
- Enter the text you want to extract keywords from and click the "Extract Keywords" button.
- The extracted keywords will be displayed in Modal component.