TreeMap
A free, open-source disk-space visualizer. Squarified treemap, duplicate hunting, disk-full forecasting, and cleanup that only ever moves files to the Trash.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Upload your own documents (PDF, plain text, Markdown), then ask questions about them in natural
language. Every answer cites the document and chunk it came from, and follow-up questions keep the
context of the conversation.
See PLANNING.md for architecture decisions, measurements and rationale.
The demo runs the production configuration: Gemini as the LLM, ONNX embeddings, a single shared
Chroma store. Two things to know before trying it:檢視完整 README ↗Upload your own documents (PDF, plain text, Markdown), then ask questions about them in natural language. Every answer cites the document and chunk it came from, and follow-up questions keep the context of the conversation.
See PLANNING.md for architecture decisions, measurements and rationale.
https://rag-knowledge-assistant-navy.vercel.app
The demo runs the production configuration: Gemini as the LLM, ONNX embeddings, a single shared Chroma store. Two things to know before trying it:
The first request after a deploy can take a while: on a fresh instance the embedding model (~90MB) is downloaded on first use.
Ingestion: upload -> parse (pypdf / text) -> chunk -> embed (all-MiniLM-L6-v2, ONNX) -> Chroma
Query: question (+ history) -> embed -> retrieve top-k -> relevance filtering
-> prompt with numbered [n] sources -> LLM (Ollama or Gemini) -> answer + citations
POST /documents (upload + index), POST /query
({question, top_k?, history?} -> {answer, has_context, citations}), GET /health, and an
admin-only DELETE /documents/{source} (requires an X-Admin-Token header matching
ADMIN_TOKEN; disabled — 404 — when ADMIN_TOKEN is unset).all-MiniLM-L6-v2, run locally through ONNX Runtime. No API key, no per-request cost.llama3.2) locally for development, Google Gemini (Flash, free tier) in
production, selected at runtime by LLM_PROVIDER.Prerequisites: Python 3, Node.js 20+, and Ollama with the model pulled
(ollama pull llama3.2) — or a Gemini API key to skip Ollama entirely.
Backend
cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # LLM_PROVIDER=ollama by default; set gemini + GEMINI_API_KEY for the cloud path
uvicorn app.main:app --reload
/health, interactive docs at /docs)backend/chroma_db/ (gitignored). Locally it persists across restarts; on
the live demo it doesn't (see above).Frontend
cd frontend
npm install
cp .env.local.example .env.local # only needed if the backend isn't on http://localhost:8000
npm run dev
FRONTEND_ORIGINS in
backend/.env for any other host.cd backend
pytest # fast, hermetic unit tests (default)
pytest -m model # loads the real embedding model + Chroma (relevance regression tests)
pytest -m ollama # calls a real local Ollama server (skips if it's not running)
pytest -m gemini # calls the real Gemini API (skips without GEMINI_API_KEY)
pytest -m "" # everything
sentence-transformers, and it was crashing out of memory mid-request on a 512MB instance. Measured:
the PyTorch runtime import alone costs ~400MB — the ~90MB model weights were never the problem, so a
smaller model wouldn't have helped. The fix was to run the same all-MiniLM-L6-v2 weights through
their ONNX export, via ONNX Runtime, which already ships with chromadb (no new dependency). Peak
memory for a real upload-then-query cycle dropped from ~560–650MB to ~305–354MB. Verified rather than
assumed that nothing else changed: the two runtimes produce float32-identical vectors (max absolute
difference 0.000000), and every relevance regression test passed without recalibrating a threshold.
Details in PLANNING.md (PR #19).llm.generate_answer (Ollama) and
gemini.generate_answer share the same (prompt, model) -> str signature, and LLM_PROVIDER picks
the backend at request time. The generate function and its model name are selected together as a
pair, so one backend's model name can never be sent to the other.httpx), not LangChain wrappers or the vendor SDK, for the LLM call. One narrow
function per backend is easier to reason about and to mock deterministically, and it avoids the
Gemini SDK's grpc/protobuf dependency chain.PLANNING.md records where a single-vector heuristic stops being enough (re-ranking would be the
next step) instead of claiming it's solved./query; the backend
keeps no session state. Conversations are persisted in the browser (localStorage), not on the server.Single-user, no auth, text-extractable documents only (no OCR for scanned PDFs). Answers aren't
streamed yet. See PLANNING.md for the full list of non-goals and known limitations.