Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
/ SAP-internship Public archive

In fulfillment of the requirements for SAP Generative AI COE technical assessment

License

Notifications You must be signed in to change notification settings

TuWeile/SAP-internship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAP Generative AI COE Technical Assessment

License

Installation · Documentation · Contact

About The Submission

Public demonstration GIF display of SAP technical assessment submission

This submission serves in fulfillment of the requirements for SAP's Generative AI COE technical assessment sent on 2 January 2024. This application is meant as a prototype Generative AI app utilizing OpenAI API and LangChain framework to introduce myself to others. The application responds to queries and receives answers related to my profile, and it was developed entirely in Python, along with being dockerized in order to provide for an easier installation process.

Installation instructions and documentation and slides, detailing my ideas, design choices, and other insights can be found below. Should there be any issues, please feel free to contact me!

Installation

Before getting this submission to run locally within your computer, ensure that the following prerequisites are fulfilled:

Prerequisites

  • You must have Docker installed in your computer with an internet connection.
  • You must have a file named api_keys.pdf locked by a password sent separately. This file contains the API keys.

Getting Started

  1. Download or clone the repository provided above. Store the files locally in a file directory you can access into.
  2. Using your Terminal, change your directory to point towards where the Dockerfile is located. Run the following command in the Terminal.
    docker build -t tuweile/sap-assignment:1.0.0 .
  3. Once the image has been installed, enter the following command in the Terminal. Ensure that port 8501 is open.
    docker run -p 8501:8501 tuweile/sap-assignment:1.0.0
  4. Once the container has been initialized and is running, go to http://localhost:8501 to enter into the application.
  5. Unlock the file api_keys.pdf with the password sent via email in response to the technical assessment. Enter the API keys (OpenAI and Pinecone) and the environment value (Pinecone) into the configuration sidebar.
  6. If need be, you may customize the chunk size, the chunk overlap, or the k value for response generation for your own usage. Please give it up to a minute to rebuild the embeddings. Otherwise, you may skip this step.
  7. Click on the Apply Data button to apply said settings. You may now use the application and configure accordingly.

You may also find a M4V (MP4) video step-by-step guide on the installation steps in the /public/installation-guide.m4v directory. The installation guide for Windows and MacOS are linked for your reference.

Should you encounter any issues with the APIs such as insufficient credits or rate limits, please do not hesitate to let me know. I will issue a new set of APIs for your reference.

Documentation

Technical documentations detailing the architecture design, ideas, and my evaluations can be found in README-DOCUMENTATION.pdf.

Contact

Should you have any inquiries or issues with regards to this submission, please contact me as follows:

Tu Weile - LinkedIn - tuweile@u.nus.edu

Project Link: https://github.com/TuWeile/SAP-internship

About

In fulfillment of the requirements for SAP Generative AI COE technical assessment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published