fix(filesystem): run pifs from local venv

This commit is contained in:
BukeLy 2026-05-27 14:34:42 +08:00
parent a70fc672be
commit 21c83b6398
2 changed files with 10 additions and 5 deletions

12
pifs
View file

@ -1,6 +1,10 @@
#!/usr/bin/env python3
from pageindex.filesystem.cli import main
#!/bin/sh
set -eu
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if __name__ == "__main__":
raise SystemExit(main())
if [ -x "$SCRIPT_DIR/.venv/bin/python" ]; then
exec "$SCRIPT_DIR/.venv/bin/python" -m pageindex.filesystem.cli "$@"
fi
exec python3 -m pageindex.filesystem.cli "$@"

View file

@ -1,6 +1,7 @@
litellm==1.83.7
# openai-agents # optional: required for examples/agentic_vectorless_rag_demo.py
# openai-agents==0.17.2 # optional: required for pifs chat/ask and examples/agentic_vectorless_rag_demo.py
pymupdf==1.26.4
PyPDF2==3.0.1
python-dotenv==1.2.2
pyyaml==6.0.2
sqlite-vec>=0.1.9