aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAnthony Wang2024-07-26 23:03:29 -0500
committerAnthony Wang2024-07-26 23:03:29 -0500
commit088075b13330be9730e339d9eaf01e8ab468d6c3 (patch)
treeb90bbca4b68c8bbe8ca9c2dc69a6bab2df5816e9 /README.md
Initial commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..443cc5b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,17 @@
+# search
+
+Semantic file search using ImageBind and sqlite-vec
+
+## Installation
+
+```
+pip install -r requirements.txt
+```
+
+If you don't need PyTorch with GPU support, first run `pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu`. During runtime, if you get the error `ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'`, change `functional_tensor` to `functional`.
+
+## Usage
+
+This program uses a client-server architecture to watch directories with inotify and keep the model loaded in memory. It takes around 15 seconds to load the model so it wouldn't be great if every query had to wait on that.
+
+Run `python server.py DIRS_TO_INDEX` to start the server. Then, run `python client.py SEARCH_TEXT NUM_RESULTS` to get a list of the most similar files.