Open Fordari opened 1 year ago
There are not many files stored right now. The results of the executed tasks are stored currently in Pinecone, and you can use tools/results or tools/results-browser to look at them. That's the only thing currently persisted.
Same thing here. 7 hours work seamless agent work to create a file but I could not locate the file.
suffered from the same issue, I just created a list that stored all the results and generated an output file by looping through the list
with open('output.txt', 'w') as f:
for item in result_list:
f.write(item)
@cailynyongyong Where did you write this code?
I ran the script for multiple hours and would like to see the results. When I run tools/results.py
I get an API token error (openai.error.AuthenticationError: No API key provided.
). Once I added openai.api_key = OPENAI_API_KEY
to main
, it removed the error, but I don't get any results. How can I see the data that was created?
Update: I further modified the file to pass the namespace to query_records
. and that got it working.
retrieved_tasks = query_records(index, query, args.objective[0])
def query_records(index, query, namespace, top_k=1000):
results = index.query(query, top_k=top_k,
namespace=namespace, include_metadata=True)
return [f"{task.metadata['task']}:\n{task.metadata['result']}\n------------------" for task in results.matches]
This is a very seemless agent implementation, but I can't seem to sort out where files are stored.