Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this is a branch for feature COT #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xxxxxsun
Copy link

@Xxxxxsun Xxxxxsun commented Dec 5, 2024

I have reproduced the COT algorithm using OmAgent and reorganized the entire codebase to align with the structure outlined in CONTRIBUTING.md(New Features, Sec. 2). The current directory structure for COT is as follows:

examples/cotprompt
├── agent
│   └── cot_agent
│       ├── cot_conclude.py
│       ├── cot_input_interface.py
│       ├── cot_reasoning.py
│       └── __init__.py
│       
├── compile_container.py
├── configs
│   ├── llms
│   │   ├── gpt4o.yml
│   │   ├── json_res.yml
│   │   └── text_res.yml
│   ├── tools
│   │   └── all_tools.yml
│   └── workers
│       ├── cot_conclude.yml
│       ├── cot_input_interface.yml
│       └── cot_reasoning.yaml
├── container.yaml
└── run_cli.py

The main approach involves implementing three workers:

  1. cot_input_interface: Responsible for receiving user questions.
  2. cot_reasoning: Dedicated to generating the reasoning path without producing the final answer.
  3. cot_conclude: Takes the user question and the reasoning path generated by the ReasonWorker to produce the final answer.

@panregedit
Copy link
Collaborator

Hi, there are few things you need to do before your code can be merged:

  1. Remove all unnecessary commented-out code.
  2. Ensure all comments are in English.
  3. Adjust the PR to the feature/v0.2.1/examples branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants