Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

open_o1

An open-source implementation of OpenAI o1, base on prompt, inspired by Code-Prompt

usage

o1.py can be a prompt of any LLM, use it and ask anyting

principle

context-learning not only in chat, but also in output

exampls

base on LLM: deepseek-chat, top_p = 1, temperature=0.7 deepseek-chat is best LLM !!!

Compare

Input: Which is larger, .9 or .11?

{
  "raw_query": "Which is larger, .9 or .11?",
  "analysis": {
    "key_word": [
      "comparison",
      "decimal numbers",
      "magnitude"
    ],
    "knowledge_region": [
      "Mathematics",
      "Arithmetic",
      "Number Theory"
    ]
  },
  "expert": {
    "name": "Mathematics Expert",
    "description": "I am an expert in mathematics, particularly in arithmetic and number theory."
  },
  "expert_query": "Determine which decimal number is greater: 0.9 or 0.11.",
  "expert_analysis": {
    "important_parts": [
      "Comparing the magnitude of two decimal numbers",
      "Understanding the place value of digits in decimal numbers"
    ],
    "concepts_definitions": [
      "A decimal number is a fraction where the denominator is a power of ten",
      "The place value system determines the value of each digit based on its position"
    ],
    "careful_points": [
      "Ensure that both numbers are compared with the same number of decimal places",
      "Pay attention to the digits in the tenths and hundredths place"
    ]
  },
  "actions": [
    {
      "action": "Compare the tenths place of 0.9 and 0.11.",
      "check": "The tenths place of 0.9 is 9, and the tenths place of 0.11 is 1. Since 9 > 1, 0.9 is larger than 0.11."
    }
  ],
  "final_answer": "0.9 is larger than 0.11."
}

About

An open-source implementation of OpenAI o1, base on Prompt

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages