Remove legacy storage implementations and deprecated examples: - Delete FAISS, JSON, Memgraph, Milvus, MongoDB, Nano Vector DB, Neo4j, NetworkX, Qdrant, Redis storage backends - Remove Kubernetes deployment manifests and installation scripts - Delete unofficial examples for deprecated backends and offline deployment docs Streamline core infrastructure: - Consolidate storage layer to PostgreSQL-only implementation - Add full-text search caching with FTS cache module - Implement metrics collection and monitoring pipeline - Add explain and metrics API routes Modernize frontend and tooling: - Switch web UI to Bun with bun.lock, remove npm and pnpm lockfiles - Update Dockerfile for PostgreSQL-only deployment - Add Makefile for common development tasks - Update environment and configuration examples Enhance evaluation and testing capabilities: - Add prompt optimization with DSPy and auto-tuning - Implement ground truth regeneration and variant testing - Add prompt debugging and response comparison utilities - Expand test coverage with new integration scenarios Simplify dependencies and configuration: - Remove offline-specific requirement files - Update pyproject.toml with streamlined dependencies - Add Python version pinning with .python-version - Create project guidelines in CLAUDE.md and AGENTS.md
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# Development commands (npm-style)
|
|
# Usage: make <command>
|
|
|
|
.PHONY: lint format typecheck check fix test clean dev
|
|
|
|
# Lint code with ruff
|
|
lint:
|
|
uv run ruff check .
|
|
|
|
# Format code with ruff
|
|
format:
|
|
uv run ruff format .
|
|
|
|
# Type-check with ty
|
|
typecheck:
|
|
uv run ty check .
|
|
|
|
# Run all checks (lint + format check + typecheck)
|
|
check:
|
|
uv run ruff check .
|
|
uv run ruff format --check .
|
|
uv run ty check .
|
|
|
|
# Fix linting issues and format code
|
|
fix:
|
|
uv run ruff check . --fix
|
|
uv run ruff format .
|
|
|
|
# Run tests
|
|
test:
|
|
uv run pytest
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type f -name "*.pyc" -delete 2>/dev/null || true
|
|
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type d -name ".ruff_cache" -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
|
|
|
|
# Start development server
|
|
dev:
|
|
uv run lightrag-server
|
|
|
|
# Install dependencies
|
|
install:
|
|
uv sync --extra api --extra test --extra lint
|
|
|
|
# Update lockfile
|
|
lock:
|
|
uv lock --upgrade
|