Seeed-Jetson-DevelopTool / local-rag-llamaindex
CLAUDE.md57 starsChanged 4 months agoMITView on GitHub
Deploy a local RAG chatbot on Jetson using LlamaIndex + ChromaDB + quantized Llama2-7b (MLC). Uses jetson-containers Docker environment. Requires Jetson with ≥16GB RAM and JetPack 5.1+.
- Installs packages
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- fix-browser-snap-jetsonAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- gr00t-n1-6-deploy-agxAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- lerobot-env-setupAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Run one phase at a time. After each phase:
- Very specific: line 21
If output contains [STOP] → stop immediately, consult the failure decision tree.
- Very specific: line 22
If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local RAG with LlamaIndex
A local Retrieval-Augmented Generation chatbot running entirely on Jetson. Uses the jetson-containers Docker environment, ChromaDB as the vector store, and a quantized Llama2-7b (MLC q4f16) model for inference.
Hardware: reComputer Jetson with ≥16GB RAM Prerequisites: JetPack 5.1+, Docker installed and running
Execution model
Run one phase at a time. After each phase:
- Relay all output lines to the user.
- If output contains
[STOP]→ stop immediately, consult the failure decision tree. - If output ends with
[OK]→ tell the user "Phase N complete" and proceed to the next phase.
Phase 1 — setup (~2 min)
Clone jetson-containers and install its Python tooling.
git clone --depth=1 https://github.com/dusty-nv/jetson-containers
cd jetson-containers
pip install -r requirements.txtExpected: pip install completes without errors. [OK]
Phase 2 — clone (~1 min)
Clone the RAG project into the jetson-containers data directory.
cd jetson-containers/data
git clone https://github.com/Seeed-Projects/RAG_based_on_Jetson.gitExpected: RAG_based_on_Jetson/ directory created. [OK]
Phase 3 — model (varies, depends on network)
Install git-lfs and clone the quantized Llama2-7b model weights.
sudo apt-get install git-lfs
git lfs install
cd jetson-containers/data/RAG_based_on_Jetson
git clone https://huggingface.co/JiahaoLi/llama2-7b-MLC-q4f16-jetson-containersExpected: model directory llama2-7b-MLC-q4f16-jetson-containers/ populated with weight files. [OK]
Phase 4 — run (inside Docker container)
Launch the MLC container, install dependencies inside it, then start the RAG app.
# From the jetson-containers root:
cd jetson-containers
./run.sh $(./autotag mlc)Once inside the container shell:
cd data/RAG_based_on_Jetson/
pip install -r requirements.txt
pip install chromadb==0.3.29
python3 RAG.pyNote:
pip install chromadb==0.3.29may print dependency conflict warnings — these are ignorable as long as the install completes andRAG.pystarts successfully.
Expected: RAG chatbot starts and accepts queries in the terminal. [OK]
Failure decision tree
| Symptom | Action |
| git clone fails (jetson-containers or RAG repo) | Check network connectivity. Re-run the clone command — it is safe to retry. |
Docker not found / ./run.sh permission denied | Confirm Docker is installed: docker --version. Add user to docker group: sudo usermod -aG docker $USER then log out/in. |
./autotag mlc returns no image | Run ./autotag mlc standalone to see available tags. Pull manually: docker pull dustynv/mlc:r35.x.x matching your L4T version. |
| model clone fails — git-lfs not initialised | Run git lfs install after sudo apt-get install git-lfs, then retry the clone. |
| model clone fails — network/HuggingFace timeout | Retry. For slow connections add GIT_LFS_SKIP_SMUDGE=1 to clone first, then git lfs pull. |
| chromadb install errors (inside container) | Dependency conflict warnings from chromadb==0.3.29 are ignorable. Only stop if import chromadb fails when running RAG.py. |
RAG.py crashes — CUDA OOM | Confirm board has ≥16GB RAM. Close other GPU workloads and retry. |
Reference files
references/source.body.md— original tutorial article (background reading, not required for execution)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

