Giter Site home page Giter Site logo

llm-tldr's Introduction

llm-tldr

Short description of LLM research and development

Papers

Chain of Thought (Jason Wei 2023)

Paper: Chain Of Thought

A new prompting technique to improve LLM reasoning performance.

  • Example 1:

Screenshot 2024-05-02 at 14 00 56

  • Example 2:

Screenshot 2024-05-02 at 14 03 15

  • Result: for Math, CoT can improve 2x solve rate

Screenshot 2024-05-02 at 14 06 24

  • One liner command
curl -X POST "https://api.openai.com/v1/chat/completions" \
        -H "Authorization: Bearer YOUR_API_KEY" \
        -H "Content-Type: application/json" \
        -d '{
               "model": "gpt-3.5-turbo",
               "messages": [
                   {"role": "system", "content": "You are a helpful assistant."},
                   {"role": "user", "content": "Explain the steps to find the least common multiple (LCM) of these numbers: [12, 15, 18] and provide the answer in JSON format with your thoughts and the final answer."}
               ],
               "max_tokens": 250,
               "temperature": 0.3,
               "n": 1,
               "stop": null
            }'

[Github Workspace][https://github.com/codespaces/new/khangich/llm-tldr]

ReAct (Shunyu Yao 2023)

Paper: ReAct

  • Example 1:
  • Example 2:
  • Result
  • Weblink diagram
+-------------------+      +-------------------+      +-------------------+
|   Reset Env with  |      |   Generate Thought|      |   Execute Action  |
|   Question (idx)  |----->|   & Action using  |----->|   in Environment  |
|                   |      |   LLM Function    |      |   & Get Obs       |
+-------------------+      +-------------------+      +-------------------+
           |                        |                          |
           |                        |                          |
           v                        v                          v
+-------------------+      +-------------------+      +-------------------+
|   Update Prompt   |<-----|   Format Response |<-----|   Check if Done   |
|   with Question   |      |   & Handle Errors |      |   & Update Prompt |
+-------------------+      +-------------------+      +-------------------+

llm-tldr's People

Contributors

khangich avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.