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

How to use Taskweaver online? re; project directory #233

Open
antoineross opened this issue Mar 7, 2024 · 7 comments
Open

How to use Taskweaver online? re; project directory #233

antoineross opened this issue Mar 7, 2024 · 7 comments

Comments

@antoineross
Copy link

antoineross commented Mar 7, 2024

I was wondering if it's possible to access the a cloud bucket storage instead of a local project directory is that possible?

Or is there another way to handle this?

Thank you in advance!

@liqul
Copy link
Contributor

liqul commented Mar 8, 2024

Currently, we only support using the local file system. If the cloud storage could be mounted to the local file system, it would be no problem. Otherwise, we need to re-implement all the file i/o operations w.r.t a cloud storage, which need quite a lot of efforts.

@mirojs
Copy link

mirojs commented Mar 12, 2024

I believe this is exactly the reason why Taskweaver developers would expect MS could help to implement this. If they do it by themselves, it may take even longer time and each individual developer has to repeat the same thing. At the end of day, it's the end customer who would require the cloud storage and Taskweaver would be able to reach even more customers with this necessary feature. Hopefully this helps.

@liqul
Copy link
Contributor

liqul commented Mar 13, 2024

I believe this is exactly the reason why Taskweaver developers would expect MS could help to implement this. If they do it by themselves, it may take even longer time and each individual developer has to repeat the same thing. At the end of day, it's the end customer who would require the cloud storage and Taskweaver would be able to reach even more customers with this necessary feature. Hopefully this helps.

You are right that we are trying to build the infrastructure to ease the development of agents. We shall put this in our backlog and would like to see more support on this. Given our resource constraint, we need to be very careful on what are we working on.

@mirojs
Copy link

mirojs commented Mar 13, 2024

Thanks.

@antoineross
Copy link
Author

Hi I think I have a solution. Currently I am using a temp directory for the project directory, I just now need to make sure that every artifact generated or accessed by the LLM is through that temp directory.

I noticed that TaskWeaver stores file in quite specific areas. May I know where I can set these in the source code? I just need to be able to point them to the temp directory:

The values of variables of the above Python code after execution are:

time_series_map_20240306.png


The following artifacts were generated:
- type: image ; uri: file:///private/var/folders/jf/d3lxj_s12bv6xfgmxqxsjnd00000gn/T/tmpkfoo5mat/workspace/sessions/20240313-185034-99ad1708/cwd/post-20240313-185324-e8b62c34-display-1_image.png ; description: <Figure size 2400x1200 with 1 Axes>

@antoineross
Copy link
Author

antoineross commented Mar 13, 2024

To anyone who wants to reproduce just use the Web UI and clone the project directory into a temp directory then pass that into the

app = TaskWeaverApp(app_dir=temp_project_path, use_local_uri=True)

@liqul
Copy link
Contributor

liqul commented Mar 14, 2024

To anyone who wants to reproduce just use the Web UI and clone the project directory into a temp directory then pass that into the

app = TaskWeaverApp(app_dir=temp_project_path, use_local_uri=True)

You can place the project folder at any place assessable from the local file system.

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

No branches or pull requests

3 participants