This repository contains a simple microservice providing a REST-API to demonstrate a use case utilizing OpenAI's GPT. The user has the possibility to provide background data as PDFs and ask questions based on the data inside the documents.
Make sure you have the following software installed:
- Node 18.12.1 or above
- NPM 9.1.2 or above
- Postman App (optional)
Before you can start the service, you need to install all dependencies:
npm iSince I'm using Redis as vector store you need to install it locally. The easiest way to do so is to use docker:
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latestBefore you can run the service, you need to set the following environment variables:
export OPENAI_API_KEY=<your-api-key>
echo $OPENAI_API_KEYAfterwards, you can run the software
npm startYou can import the Postman collection into your local Postman app to test the API calls.