Skip to content

Commit

Permalink
Updated README.md and fixed some grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Code7G committed Nov 24, 2023
1 parent 080d181 commit 67f5bcb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion DAIA_GPT4V/OS_control/os_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class OSController:
"""
Controll the OS using pyautogui, and get its data with the platform library
Control the OS using pyautogui, and get its data with the platform library
"""

def __init__(self):
Expand Down
30 changes: 15 additions & 15 deletions DAIA_GPT4V/Thinker/thinking.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def goal_completer(self, suggestions: str):

def action_compleation():
pass
# Compleate a action
# Compleate an action

def action(
self,
Expand Down Expand Up @@ -130,7 +130,7 @@ def suggestion_explainer(self, suggestion: str):
"""
Explain a suggestion.
Suggestion (Create a account) -> explanation (To create a account do...)
Suggestion (Create an account) -> explanation (To create an account do...)
"""

# Remmember and the previous data for the prompt with this prompt
Expand Down Expand Up @@ -173,7 +173,7 @@ def suggestion_explainer(self, suggestion: str):
question = question.choices[0].message.content
self.save_action(action1=prompt, action2=question, category=0)

# Make GPT answer its question to generate a explanation
# Make GPT answer its question to generate an explanation
suggestion_suggestions = self.client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
Expand All @@ -197,13 +197,13 @@ def suggestion_splitter(self, suggestion: str):
"""
Split a suggestion (or step) into its sub-suggestions (or steps).
Suggestion (Create a account) -> Suggestions (['Visit the website..', 'Create account...', 'Access services..'])
Suggestion (Create an account) -> Suggestions (['Visit the website..', 'Create account...', 'Access services..'])
"""

# Explain the suggestion
explanation = self.suggestion_explainer(suggestion)

# Remmember the important previous data for the prompt
# Rememember the important previous data for the prompt
previous_data = self.short_remember(
f"""
What are the suggestions in the response based on the given response and previous data?
Expand Down Expand Up @@ -257,7 +257,7 @@ def suggestion_splitter(self, suggestion: str):
sub_suggestions = sub_suggestions.choices[0].message.content
self.save_action(action1=prompt, action2=sub_suggestions, category=0)

# Check if the response gives any suggestions and if it is a answer
# Check if the response gives any suggestions and if it is an answer
if sub_suggestions[0:5].lower() in "reject":
print(
f"""
Expand All @@ -277,13 +277,13 @@ def suggestion_splitter(self, suggestion: str):

def explanation_to_suggestions(self, explanation: str, prev_data: bool):
"""
Split a explanation into suggestions
Split an explanation into suggestions
Explanation (To create a account do..) -> Suggestions (['Visit the website..', 'Create account...', 'Access services..'])
Explanation (To create an account do..) -> Suggestions (['Visit the website..', 'Create account...', 'Access services..'])
"""

if prev_data:
# Remmember the important previous data for the prompt
# Rememember the important previous data for the prompt
previous_data = self.short_remember(
f"""
What are the suggestions in the response based on the given response and previous data?
Expand Down Expand Up @@ -338,7 +338,7 @@ def explanation_to_suggestions(self, explanation: str, prev_data: bool):
suggestions = suggestions.choices[0].message.content
self.save_action(action1=prompt, action2=suggestions, category=0)

# Check if the response gives any suggestions and if it is a answer
# Check if the response gives any suggestions and if it is an answer
if suggestions[0:5].lower() in "reject":
print(
f"""
Expand Down Expand Up @@ -388,7 +388,7 @@ def explanation_to_suggestions(self, explanation: str, prev_data: bool):
suggestions = suggestions.choices[0].message.content
self.save_action(action1=prompt, action2=suggestions, category=0)

# Check if the response gives any suggestions and if it is a answer
# Check if the response gives any suggestions and if it is an answer
if suggestions[0:5].lower() in "reject":
print(
f"""
Expand All @@ -409,7 +409,7 @@ def explanation_to_suggestions(self, explanation: str, prev_data: bool):

def short_remember(self, need: str):
"""
Remmember a short period of history in detail from the DAIA MemoryDB,
Remember a short period of history in detail from the DAIA MemoryDB,
and extract the most important data out of the history for the current need prompt
In the need prompt, you must place a '>>previous data missing<<' string where you want the GPT to input the previous data
Expand All @@ -419,7 +419,7 @@ def short_remember(self, need: str):

memory = Memory()

# Get and format all of the previous action with the limit of 100
# Get and format all of the previous action with a limit of 100
previous_important_data = ""
for action in memory.get_ordered_actions_of_goal(self.goal_id, 100):
previous_important_data = previous_important_data + "".join(
Expand All @@ -428,7 +428,7 @@ def short_remember(self, need: str):

# If there is no history yet
if len(previous_important_data) <= 0:
return "Nothing has hppened yet."
return "Nothing has happened yet."

# The main prompt
previous_data = self.client.chat.completions.create(
Expand Down Expand Up @@ -530,7 +530,7 @@ def save_goal_in_goal(self):

def save_action(self, action1: str, action2: str, category: int):
"""
Save a action under its category. (The action is made out of 2 actions)
Save an action under its category. (The action is made out of 2 actions)
Category/action types:
"question=>response" = int 0
Expand Down
8 changes: 4 additions & 4 deletions DAIA_GPT4V/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ def run(api_key):
print("Goal is empty!")
goal = input("Please enter your goal for the DAIA here: ")

# Save the goal and get its id (goal_id=anything, -1 is just a example, as this is changed at line 18 by using another Think class inctance)
# Save the goal and get its id (goal_id=anything, -1 is just an example, as this is changed at line 18 by using another Think class instance)
think_ = Think(key=api_key, goal=goal, goal_id=-1)
goal_id = think_.save_goal()

# Save the goal with its id
think = Think(key=api_key, goal=goal, goal_id=goal_id)
think.save_goal_in_goal()

# Loop for getting a question for goal compleation, that the user agrees with
# Loop for getting a question for goal completion, that the user agrees with
while True:
prompt = f"""
You have a goal you want to achieve.
Expand Down Expand Up @@ -86,7 +86,7 @@ def run(api_key):
if second_time:
if agree.upper() == "N":
think.save_action(
action1=f'"Sorry, but I dissagree with the current suggestions because: \n{explanation}\nCan you update the suggestions?"',
action1=f'"Sorry, but I disagree with the current suggestions because: \n{explanation}\nCan you update the suggestions?"',
action2=f'"Yes, here are the new suggestions: \n{suggestions}"',
category=0,
)
Expand Down Expand Up @@ -122,7 +122,7 @@ def run(api_key):

else:
think.save_action(
action1=f'"Sorry, but I dissagree with the current suggestions because: \n{explanation}\nCan you update the suggestions?"',
action1=f'"Sorry, but I disagree with the current suggestions because: \n{explanation}\nCan you update the suggestions?"',
action2=f'"Yes, here are the new suggestions: \n{suggestions}"',
category=0,
)
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ DAIA is a powerful Digital Artificial Intelligence Agent that enables intelligen

## 1. Introduction πŸš€

DAIA is a cutting-edge AI agent designed to enhance your productivity by intelligently interacting with your computer and compleating big goals. With DAIA, you can complate goals, automate tasks, gather information, and perform various operations seamlessly, just like you would do yourself.
DAIA is a cutting-edge AI agent designed to enhance your productivity by intelligently interacting with your computer and completing big goals. With DAIA, you can complete goals, automate tasks, gather information, and perform various operations seamlessly, just like you would do yourself.

The main difference with the DAIA compared to other AI Agents is that it interacts with your computer trough a vision system (GPT-4V) and task compleation system allowing it to be capable of doing many more tasks and goals compared to other AI Agents that use the Terminal or CMD for interaction with the computer.
Furthermore the DAIA will be built with a built in memory, self evaluating and optimizing system from the start.
The main difference with the DAIA compared to other AI Agents is that it interacts with your computer through a vision system (GPT-4V) and task completion system allowing it to be capable of doing many more tasks and goals compared to other AI Agents that use the Terminal or CMD for interaction with the computer.
Furthermore, the DAIA will be built with a built-in memory, self-evaluating and optimizing system from the start.

Here is our current blueprint for the DAIA and its features:
![Here is our current blueprint for the DAIA and its features:](Design/DAIA%20(GPT%20Vision).png)
Expand All @@ -40,13 +40,13 @@ Here is our current blueprint for the DAIA and its features:

- **Endless Scalability**: DAIA can make multiple copies of itself and create its own network of DAIAs provided the computing power (in progress)

- **Automation of Big Goals**: DAIA can automate big goals with its capability to make multiple versions of itself, therefor making the process faster (in progress)
- **Automation of Big Goals**: DAIA can automate big goals with its capability to make multiple versions of itself, therefore making the process faster (in progress)

## 3. Usage 🀝

Once installed, you can start using DAIA by launching the application and initiating conversations or goals. Here are some common usage scenarios:

- **Goal Compleation**: Automate and compleate goals (in progress)
- **Goal Completion**: Automate and complete goals (in progress)

- **Task Automation**: Create and schedule automated tasks to streamline your workflow. (not done yet)

Expand All @@ -58,23 +58,23 @@ Once installed, you can start using DAIA by launching the application and initia

We welcome contributions from the DAIA community to help improve and expand the capabilities of our AI agent. It is still in its early development stage so there is a lot to be done and we urgently need your support in this effort. Here's how you can contribute:

- **Join Our Discord Server**: If you're a developer or someone who is interested in contributing, please join our Discord server The Envedity Network at: https://discord.gg/Xrf8bjXMU6, there you can become a developer and will be able to directly contribute to the main DAIA repo with us, as well as share your feedback, suggestions, and bug reports with us and more..
- **Join Our Discord Server**: If you're a developer or someone who is interested in contributing, please join our Discord server The Envedity Network at: https://discord.gg/Xrf8bjXMU6, there you can become a developer and will be able to directly contribute to the main DAIA repo with us, as well as share your feedback, suggestions, and bug reports with us and more.. Your insights are valuable in shaping the future of DAIA

Here is what we have already done from the blueprint:
![Here is what we have already done from the blueprint:](Design/DAIA%20(GPT%20Vision)%20progress.png)

- **Feedback**: Share your feedback, suggestions, and bug reports with us. Your insights are valuable in shaping the future of DAIA. You can do this by [opening an issue](https://github.com/Envedity/DAIA/issues) on our feedback repository or in our Discord server.
- **Feedback**: Share your feedback, suggestions, and bug reports with us. You can do this by [opening an issue](https://github.com/Envedity/DAIA/issues) on our feedback repository or in our Discord server.

- **Share**: Share the DAIA project with others you know to spread the word (DAIA repo link: https://github.com/Envedity/DAIA)

- **Support (Sponsor the project)**:
- **Support (Sponsor the project)**: You can sponsor us through this e-mail: [email protected] or donate/support us at https://www.patreon.com/user?u=108155871

We appreciate your support in making DAIA even better for all users! πŸ™

Lets build the future of AGI Together!
Let's build the future of AGI Together!

## 5. License πŸ“„

DAIA is under the creative commons license.
DAIA is under the Creative Commons license.

For the most up-to-date information, visit [DAIA's official website](https://envedity.github.io/). πŸŒπŸš€

0 comments on commit 67f5bcb

Please sign in to comment.