tarekziade HF Staff commited on
Commit
911279a
·
1 Parent(s): 650f9ec
Files changed (2) hide show
  1. indexing/Makefile +41 -0
  2. indexing/pyproject.toml +27 -0
indexing/Makefile ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PYTHON ?= python3.10
2
+ VENV := .venv
3
+ BIN := $(VENV)/bin
4
+ PIP := $(BIN)/pip
5
+
6
+ .PHONY: help venv install dev lint format check clean
7
+
8
+ help:
9
+ @echo "Targets:"
10
+ @echo " venv - create .venv with $(PYTHON)"
11
+ @echo " install - install ragstudio into venv"
12
+ @echo " dev - install ragstudio with dev extras (ruff)"
13
+ @echo " lint - run ruff check"
14
+ @echo " format - run ruff format"
15
+ @echo " check - lint + format --check"
16
+ @echo " clean - remove venv and build artifacts"
17
+
18
+ $(VENV)/bin/activate:
19
+ $(PYTHON) -m venv $(VENV)
20
+ $(PIP) install --upgrade pip
21
+
22
+ venv: $(VENV)/bin/activate
23
+
24
+ install: venv
25
+ $(PIP) install -e .
26
+
27
+ dev: venv
28
+ $(PIP) install -e ".[dev]"
29
+
30
+ lint: dev
31
+ $(BIN)/ruff check .
32
+
33
+ format: dev
34
+ $(BIN)/ruff format .
35
+
36
+ check: dev
37
+ $(BIN)/ruff check .
38
+ $(BIN)/ruff format --check .
39
+
40
+ clean:
41
+ rm -rf $(VENV) build dist *.egg-info .ruff_cache
indexing/pyproject.toml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ragstudio"
7
+ version = "0.1.0"
8
+ description = "Local semantic search over a folder of text + images."
9
+ requires-python = ">=3.10,<3.11"
10
+ dependencies = [
11
+ "sentence-transformers>=3.0.0",
12
+ "torch>=2.2.0",
13
+ "faiss-cpu>=1.8.0",
14
+ "pillow>=10.0.0",
15
+ "numpy>=1.26.0",
16
+ ]
17
+
18
+ [project.optional-dependencies]
19
+ dev = [
20
+ "ruff==0.15.14",
21
+ ]
22
+
23
+ [tool.setuptools]
24
+ py-modules = ["index", "query"]
25
+
26
+ [tool.setuptools.packages.find]
27
+ include = ["searchers*"]