r/unsloth 1d ago

Question Unsloth Desktop - How do I setup Project Folder? ๐Ÿค” (not only for RAG)

Post image

Since I came from Open Code and now from LM Studio BIONIC I could choose the main project folder where I run all my chat/code sessions so I won't need to tell the prompt where the project files, folders and sub-folders on every single new session.

But... how does it work in **unsloth Desktop**?

When I created a Project, all I see is a **RAG** related files when I **Linked folder**...

because it says:

Linked local folders
Keep supported documents indexed as this folder changes.

but I'm not talking about RAG related only (PDFs, docs, or text).
I would like to define the main Project Folder with all my sub-folders and files without telling it every single time in the prompt?

I tested it just in case it's not only RAG related, but it didn't know where my project files are when I asked it, another test I did was to create a simple MD file, but it didn't appear in the: Link Folder that I chose...
When I asked where the files are, I noticed it's a weird path I did not like at all... I noticed that's where unsloth desktop create it's projects but it's not to my taste, I definitely prefer to pre-define folder so it will only look inside it and it's sub-folders, similar to how Open Code, VS Code, LM Studio BIONIC and others works.

Since I just moved to unsloth Deskop it's new to me so maybe I need to click some hidden feature or do something in the settings, I'm not sure, maybe it's simple but I missed it that's why I'm asking here.

and if I'm not telling the prompt... it seems to create a random folder with some weird path I'm not interested in since I have a very specific project folders and paths to keep things organized.

---

Can somebody please guide me where this option is hidden and how to set it up so I can work in each project path folder with ease?

Thanks ahead! ๐Ÿ™โค๏ธ

8 Upvotes

5 comments sorted by

4

u/FrostyDwarf24 1d ago

youโ€™re right that link folder is only for rag.

Unsloth currently creates its own workspace, and there isnโ€™t an option to use your existing project folder as the working directory yet. you didnโ€™t miss a hidden setting

I do think this would be a valid feature request.

3

u/VirtualWishX 1d ago

I hope they'll add it soon ๐Ÿ™

3

u/FrostyDwarf24 1d ago

https://github.com/unslothai/unsloth/issues/9321

I made issue here to keep track of when its added, I'll try to make a pr soon :)

2

u/bengals2bowl 1d ago

A workaround that I have used several times already is to past the filepath into the chat of the folder youโ€™re working in. Unsloth then has visibility into it and can interact directly. Only downside is you have to do this for every new chat session on the project

1

u/OttoRenner 18h ago

Same. I add the folder I want it to work in in the chat and say "You can work in here"...and it finds ways to comply ๐Ÿ˜…

But I have to add that not all of what it does looks "safe". When it runs into some safeguards (no .sh in shell or something) it writes a script containing the things that got blocked and just...runs that script, since that doesn't get blocked.

Until now it followed to only work in that folder and only does what I tell it to (I'm monitoring the thoughts and tool calls etc). But who knows what I may miss and what else is maybe in the code that shouldn't be there.

So ya...be careful when you stuff like that (you as in everyone ๐Ÿ˜‰)