Giter Site home page Giter Site logo

yohanssamuel / prompt_engineering Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 111 KB

Week 4 - Prompt Engineering: In-context learning with GPT-3 and other Large Language Models

Jupyter Notebook 95.53% Python 4.21% Dockerfile 0.13% Procfile 0.03% Shell 0.10%
gpt-3 in-context-learning language-model large prompt-engineering

prompt_engineering's Introduction

Prompt_Engineering

About

This week’s challenge is to systematically explore strategies that help generate prompts for LLMs to extract relevant entities from job descriptions and also to classify web pages given only a few examples of human scores. You will be also required to compare responses and accuracies of multiple LLM models for given prompts.

Objectives

  • Understand the algorithms and techniques that goes into building large language models
  • Design a pipeline that takes a news item (e.g. title + description + body) or a job description and returns a score for the news item and list of entities (and potentially their relationship) for the job description according to stored examples. Consider the following while designing your pipeline
    • Think about in what format you want to receive the news item to be processed
    • Think about how to select the best samples for the given news item
    • Think about how to pre-process the incoming item as well as the pre-defined samples
    • Think about how to compose a prompt that gives the best result for the given item
    • Think about the post-processing step you need to do to increase the accuracy as well as return in the format required
  • Write a flask or fastapi backend. The API should have at least two endpoints /bnewscore - for scoring breaking news that may lead to public unrest /jdentities - for extracting entities from job description

Data

The 1st dataset used for this project could be found in here , and the 2nd dataset development and traing and testing and final reporting.

Repository overview

Structure of the repository:

    ├── models  (contains trained model)
    ├── .github (github workflows for CI/CD, CML)
    ├── screenshots (model versioning screenshots)
    ├── data  (contains data versioning metedata)
    ├── scripts (contains the main script)	
    │   ├── logger.py (logger for the project)
    │   ├── plot.py (handles plots)
    │   ├── preprocessing.py (dataset preprocessing)
    ├── notebooks	
    │   ├── job_description_entity_extraction.ipynb (Extraction of job description entity)
    │   ├── document_score.ipynb (score for the news item)
    ├── tests 
    │   ├── test_preprocessing.py (test for the preprocessing script)
    ├── README.md (contains the project description)
    ├── requirements.txt (contains the required packages)
    |── LICENSE (license of the project)
    └── .dvc (contains the dvc configuration)

Contrbutor(s)

License

MIT

prompt_engineering's People

Contributors

yohanssamuel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

prompt_engineering's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.