13 Commits

Author SHA1 Message Date
tomatocream 4495a3cc62 feat: add lightrag-mcp MCP server + agent tooling
- Add AGENTS.md with repo guidelines
- Add lightrag-mcp: FastMCP server exposing insert_documents() + query_documents()
  to LLM agents via stdio transport, talks to LightRAG REST API
- Add scripts/patch-vllm-cpu.py for CPU inference patching
- Add .env.vllm for vLLM configuration
- Update flake.nix with expanded dev shell
- Update .env.lightrag
- Remove CLAUDE.md (replaced by AGENTS.md)
2026-04-19 21:46:47 +08:00
tomatocream c5dc2cf637 config: update all references to qwen3:0.6b + qwen3-embedding:0.6b
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:19:54 +08:00
tomatocream deddc2b6c9 chore: ignore .direnv, rag_storage, inputs, logs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:18:53 +08:00
tomatocream c47a45af48 chore: add .envrc for direnv auto-activation of lightrag shell
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:18:36 +08:00
tomatocream 22e1e754b6 fix: stay in project root after nix develop .#lightrag
Use subshells for cd to lightrag/ so user remains at repo root.
Add CLAUDE.md with purpose, architecture, and known issues.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:17:05 +08:00
tomatocream 11168df880 config: switch LLM to qwen3:0.6b, timeouts to 60s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:12:49 +08:00
tomatocream 73c3b20f0b config: switch to qwen3-embedding:0.6b (1024 dim)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 13:55:22 +08:00
tomatocream 2ffdfd2976 fix: increase embedding and LLM timeouts for large local models
qwen3-embedding:8b needs >60s on first load. Set EMBEDDING_TIMEOUT=300
(worker executes at 2x = 600s) and TIMEOUT=600 for LLM calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 13:52:25 +08:00
tomatocream 3a7249375c config: switch embedding to qwen3-embedding:8b (4096 dim)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 13:48:30 +08:00
tomatocream 232f2a4bf0 feat: build lightrag webui frontend via bun in shellHook
Adds pkgs.bun to lightrag devShell and builds the React frontend
on first shell entry if lightrag/api/webui doesn't exist yet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 13:42:36 +08:00
tomatocream f0bd44cc14 fix: add offline-llm extra and always sync venv on shell entry
ollama python package is in the offline-llm extra, not api.
Always run uv sync (not just on first entry) so extra changes take effect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 13:38:54 +08:00
tomatocream 6b4d54bfac docs: README.org and setup notes in docs/setup.org
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 12:22:46 +08:00
tomatocream 17fbeffac1 init: LightRAG + Graphiti as submodules with Nix flake
Impure devShells using uv + Python 3.12 for each project.
LD_LIBRARY_PATH set for NixOS native wheel compatibility.
Neo4j managed via nix run .#neo4j-start / neo4j-stop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 12:18:32 +08:00