Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (72 loc) · 3.44 KB
/
Copy pathMakefile
File metadata and controls
90 lines (72 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.PHONY: help lock install build test test-integration test-integration-qdrant benchmark-ltm-local benchmark-ltm-qdrant-local benchmark-ltm-qdrant-server-local chroma-up chroma-down qdrant-up qdrant-down check compile docs-serve docs-build
# Update poetry.lock
lock:
poetry lock
# Install dependencies (including dev) and download the spaCy model
install:
poetry install --with dev --extras qdrant --no-interaction
poetry run python -m spacy download en_core_web_sm
# Verify package metadata
check:
poetry check
# Compile Python source files (syntax check)
compile:
poetry run python -m compileall dmf tests integrationtest
# Run the test suite
test:
poetry run pytest
# Start Chroma 0.6.3 and wait for the service to be ready
chroma-up:
docker compose -f compose.chroma.yml up -d --wait
# Run integration tests requiring the local Chroma server
test-integration:
poetry run pytest -o addopts="-v --tb=short" -m integration integrationtest/test_chroma_server.py
# Start Qdrant 1.18.2 and wait for the service to be ready
qdrant-up:
docker compose -f compose.qdrant.yml up -d --wait
# Run integration tests requiring the local Qdrant server
test-integration-qdrant:
poetry run pytest -o addopts="-v --tb=short" -m integration integrationtest/test_qdrant_server.py
# Run the local DMF LTM + Ollama mini-benchmark (independent of pytest)
benchmark-ltm-local:
poetry run python -m integrationtest.run_ltm_benchmark
benchmark-ltm-qdrant-local:
poetry run python -m integrationtest.run_ltm_benchmark --backend qdrant
benchmark-ltm-qdrant-server-local:
poetry run python -m integrationtest.run_ltm_benchmark --backend qdrant --qdrant-mode server
# Stop containers without removing persistent volumes
chroma-down:
docker compose -f compose.chroma.yml down
# Stop Qdrant containers without removing persistent volumes
qdrant-down:
docker compose -f compose.qdrant.yml down
# Build the wheel distribution package in dist/
build:
poetry build --format wheel
# Start the documentation development server
docs-serve:
poetry run mkdocs serve
# Build static documentation
docs-build:
poetry run mkdocs build
# Show available targets and their descriptions
help:
@echo "Available targets in Makefile:"
@echo ""
@echo " make lock Update poetry.lock"
@echo " make install Install dependencies (including dev) and download spaCy model"
@echo " make check Verify package metadata"
@echo " make compile Compile Python source files"
@echo " make test Run the unit test suite"
@echo " make chroma-up Start Chroma 0.6.3 (Docker container)"
@echo " make test-integration Run integration tests against the local Chroma server"
@echo " make qdrant-up Start Qdrant 1.18.2 (Docker container)"
@echo " make test-integration-qdrant Run integration tests against the local Qdrant server"
@echo " make benchmark-ltm-local Run the local DMF LTM + Ollama benchmark"
@echo " make benchmark-ltm-qdrant-local Run the local DMF LTM + Ollama benchmark with Qdrant"
@echo " make benchmark-ltm-qdrant-server-local Run the local benchmark with Qdrant server"
@echo " make chroma-down Stop Chroma containers"
@echo " make qdrant-down Stop Qdrant containers"
@echo " make build Build wheel package in dist/"
@echo " make docs-serve Start development server for documentation"
@echo " make docs-build Build static documentation"