r/SideProject • • 8d ago

Local, open source app that lets you search your files by describing them

I've been building Mesa, a desktop app (Windows/macOS/Linux) that lets you find any of your files (documents, images, video, audio, code) by describing them.

It's fully free and open source, I just hope the community finds it useful and would appreciate any feedback to improve it!

It runs EmbeddingGemma 2 locally through llama.cpp (Vulkan, Metal, or CPU when there's no GPU). Some features I find neat that separate it from other EmbeddingGemma 2 apps I've seen so far:

  • It automatically turns natural language like "photos from last year" into filters
  • It includes OCR on every OS, so you can also search images by text that's in them
  • It also lets you drop in files in addition to searching by text. E.g. drop in an audio file to find its corresponding video

GitHub: https://github.com/biantsh/mesa

Again, I would appreciate any feedback from the community!

579 Upvotes

56 comments sorted by

11

u/depressedclassical 6d ago

I have 8GB GPU, "fast index" only runs one embedding instance at a time, leaving me with 6GB free at peak usage. Maybe you should consider multithreading "fast index" to fully utilise GPU resources. Cool project though!

2

u/Ok-Journalist-3538 6d ago

Oh that's a good idea, I'll try and benchmark that today

8

u/isrealityinthemind 8d ago

does the index update itself when files change, or do you re-index manually? curious how big it gets on a few hundred gb of files.

12

u/Ok-Journalist-3538 8d ago

Yep! It updates itself. If you've already indexed a folder, as new files get added to it, the app automatically indexes them in the background.

The size of the index depends on the type of files you have, but the general ratio I'm seeing for mixed drives is 30 MB of index per 1 GB of data, so 300 GB of files would take 9-10 GB.

2

u/isrealityinthemind 7d ago

thanks, that makes the storage tradeoff clearer. does that index grow much when files are edited, or does it mostly replace the old entries?

1

u/Ok-Journalist-3538 6d ago

The latter, index data that becomes invalidated is deleted in the background

1

u/isrealityinthemind 6d ago

thanks, good to know it cleans up invalidated entries in the background.

4

u/asamirid 7d ago

is it a portable app ??

3

u/Ok-Journalist-3538 6d ago

You probably saw as I responded to the issue on GitHub, but I implemented this after your suggestion and included it in the latest release! Thanks for the idea

To reply to u/depressedclassical: it isn't really able to use the same index across different machines for now. I don't have a clear picture of how I might implement that (perhaps using the hash of the file as the key for the index data?). Still, I think the current portable version is good for users that want to run the app without installing it and/or keep all the data in one folder

1

u/depressedclassical 6d ago

Last I used Windows (a decade ago), "portable" meant portableapps - a program you install on a thumb drive and can open it anywhere with your data etc.

If I were to do that, I would do two things:

  1. If on the same drive, make the index relative rather than absolute. That way all data from that drive is permanently indexed
  2. If not on the same drive, allow mapping different drives to different IDs in settings (the IDs should be in the database and never be presented to the user though, that's unintuitive, you'll need to find another way to label devices. And labelling them based on the disk label would be risky because you can have multiple disks with the same label. Maybe auto find by partition uuid or smth)

That's just my idea though, I haven't used Windows as a daily driver since 2016

2

u/depressedclassical 6d ago

Technically it looks like it is, but I'm just wondering - how would you get to a file if it has a different path on different machines (if it even exists at all)?

2

u/asamirid 7d ago

does it do reverse image search 👀 ??

to fid similar images..

7

u/Ok-Journalist-3538 7d ago

Yes, you can either drag-and-drop an image in the search field, or if you're looking at one of the results, press "Find similar" as in the demo video to use that image for search

2

u/3iverson 7d ago

Thanks for this! What kind of memory is required to run the models on a Mac?

2

u/Ok-Journalist-3538 7d ago

Not much: the models are about 800 MB, and while it's running Mesa uses roughly 2 GB in total

1

u/cs_cast_away_boi 7d ago

so it’s 800 mb on idle and 2 gb when it’s running? Or did i understand wrong

2

u/retaildca 7d ago

Looks great! Curious how does this compare to Google Photos?

3

u/Ok-Journalist-3538 7d ago

Unlike Google Photos Mesa doesn't use GPS data or facial recognition, so it can't know where exactly a picture was taken or recognize who's in them. In return, you get better privacy (your data isn't uploaded to any servers), more file types than just photos and videos, and you can search with an image (and other files) instead of only text

2

u/depressedclassical 6d ago

For Google Photos replacement you can use Immich (in my experience it's far better than GPhotos), this is really good for other things though

2

u/Every_Pen1676 7d ago

how big is it once installed and have you ever considered LAYA?

1

u/Ok-Journalist-3538 6d ago

The app itself is ~200 MB, and EmbeddingGemma is 800 MB, so about a gigabyte once the app is set up

I hadn't seen Laya before your comment, so I'll check it out :)

2

u/Hsay_92 7d ago

Amazing! What model did you use it to build this?

2

u/Ok-Journalist-3538 6d ago

Thanks! I mainly use Claude Opus 5.5 nowadays, but I'm a developer by trade, so I've mostly been using it as a tool

2

u/Krazynukz 7d ago

How much storage does the indexing take and how much ram on idle?

3

u/Ok-Journalist-3538 6d ago edited 6d ago

It depends on what type of files you mostly have, but to use my own local drive for reference (it should give a rough idea) it's about 30 MB of index data for 1 GB of my files, so ~3% of the original file size

As for the RAM, CPU RAM is basically 0 on idle (assuming models are loaded on the GPU), and I've measured ~2 GB when it's doing indexing work (reading multiple files at a time). If you mean VRAM, I just tested it and am seeing 5 GB, but expect this to drop to 1-1.5 GB after a fix, because I'm seeing most of it is from the OCR model (which is tiny, so seems like a bug)

20

u/I__dream_state__I 8d ago

I've been looking for this all my life. Thank you so much.

14

u/Frequent_Condition80 7d ago

damn, i was building the same thing for the last few days but this looks better than what i made

11

u/_arsey 6d ago

Damn “for the last few days”… how reality has been changed.

1

u/jax_cooper 2d ago

make it look better than this ;D

1

u/Frequent_Condition80 2d ago

Not sure if this can be improved upon without making it too feature-heavy. This looks almost perfect lol

1

u/jax_cooper 2d ago

What I meant: dont be discouraged by this, if you like that project, keep going for the sake of it

2

u/Frequent_Condition80 1d ago

hey man, yes i will go on with the project cuz I wanna learn building projects but I don't think I will release it but yeah, I will complete this project. Thanks for the advice man, really appreciate it:)

5

u/huopak 8d ago

I've been thinking about building something like this myself and now I don't have to. Thank you!

4

u/asamirid 6d ago

the app is fantastic, modern design, very versatile, it's also lightweight..

the only downside is the model stay loaded in the VRAM as long as it's running.

this affects alot of activities that can be done using the PC, gaming, watching videos, youtube.

it has an impact on the machine performance.

i think the app should off-load the model of the VRAM if it set ideal for some minutes..

a setting in the app with the period of time before unload the model will solve the problem and keep the app running in the background without losing the performance.

2

u/Temporary-Tap-7323 7d ago

Would definitely try this out. Starred it!

2

u/-khorum- 6d ago

Looks cool! I will try it out. Was thinking of a better way to search on mac since it seems a bit… difficult, and this may help with that

2

u/Adex77 5d ago

Great idea!

2

u/ericcmi 5d ago

I REALLY love that UI.

1

u/Fancy_Cat4679 5d ago

Can it identify people by face ? And an action. That would be great feature.

1

u/ArchivemindApp 4d ago

I spent the summer making something just like this. But I am trying to sell it cause I have bills to pay.

1

u/semihbceylan 2d ago

Wow, I'd had this exact idea before, but your execution is really good. Congrats and thanks for open sourcing it.