Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files
babyagi/babyagi.py
CHANGED
@@ -853,6 +853,7 @@ if __name__ == "__main__":
|
|
853 |
async def completion(message: str, history, c=None, d=None, prompt="あなたは日本語の優秀なアシスタントです。"):
|
854 |
OBJECTIVE = message
|
855 |
loop = True
|
|
|
856 |
while loop:
|
857 |
# As long as there are tasks in the storage...
|
858 |
if not tasks_storage.is_empty():
|
@@ -862,18 +863,21 @@ async def completion(message: str, history, c=None, d=None, prompt="あなたは
|
|
862 |
for t in tasks_storage.get_task_names():
|
863 |
print(" • " + str(t))
|
864 |
yield str(t)
|
|
|
865 |
|
866 |
# Step 1: Pull the first incomplete task
|
867 |
task = tasks_storage.popleft()
|
868 |
print("\033[92m\033[1m" + "\n*****NEXT TASK*****\n" + "\033[0m\033[0m")
|
869 |
print(str(task["task_name"]))
|
870 |
yield str(task["task_name"])
|
|
|
871 |
|
872 |
# Send to execution function to complete the task based on the context
|
873 |
result = execution_agent(OBJECTIVE, str(task["task_name"]))
|
874 |
print("\033[93m\033[1m" + "\n*****TASK RESULT*****\n" + "\033[0m\033[0m")
|
875 |
print(result)
|
876 |
yield result
|
|
|
877 |
|
878 |
# Step 2: Enrich result and store in the results storage
|
879 |
# This is where you should enrich the result if needed
|
|
|
853 |
async def completion(message: str, history, c=None, d=None, prompt="あなたは日本語の優秀なアシスタントです。"):
|
854 |
OBJECTIVE = message
|
855 |
loop = True
|
856 |
+
result_all = ""
|
857 |
while loop:
|
858 |
# As long as there are tasks in the storage...
|
859 |
if not tasks_storage.is_empty():
|
|
|
863 |
for t in tasks_storage.get_task_names():
|
864 |
print(" • " + str(t))
|
865 |
yield str(t)
|
866 |
+
result_all += str(t)
|
867 |
|
868 |
# Step 1: Pull the first incomplete task
|
869 |
task = tasks_storage.popleft()
|
870 |
print("\033[92m\033[1m" + "\n*****NEXT TASK*****\n" + "\033[0m\033[0m")
|
871 |
print(str(task["task_name"]))
|
872 |
yield str(task["task_name"])
|
873 |
+
result_all += str(task["task_name"])
|
874 |
|
875 |
# Send to execution function to complete the task based on the context
|
876 |
result = execution_agent(OBJECTIVE, str(task["task_name"]))
|
877 |
print("\033[93m\033[1m" + "\n*****TASK RESULT*****\n" + "\033[0m\033[0m")
|
878 |
print(result)
|
879 |
yield result
|
880 |
+
result_all += result
|
881 |
|
882 |
# Step 2: Enrich result and store in the results storage
|
883 |
# This is where you should enrich the result if needed
|
chroma/6be188e8-482c-4e1e-8fbd-8157045b1e21/data_level0.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1676000
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5bc018a730b23cc39e180c90895fc9cb6dbd08c89c03222d66efd3f319ea7d1a
|
3 |
size 1676000
|
chroma/6be188e8-482c-4e1e-8fbd-8157045b1e21/length.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4000
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e61e7106e7fbaaf5e15edadbaadff717e50019d48b60d7a00ccb64239ecc95b5
|
3 |
size 4000
|
chroma/chroma.sqlite3
CHANGED
Binary files a/chroma/chroma.sqlite3 and b/chroma/chroma.sqlite3 differ
|
|
controllers/gpt_enginner20240623141715
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 01502b0ec7e6f69caaf65d87de44dea290e6f187
|