Downloads · 30 days
0
eoinedge/edgeimpulse-docs-rag-qwen
edgeimpulse-docs-rag-qwen is a text generation model from eoinedge. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This workspace builds a local Retrieval-Augmented Generation index over the Edge Impulse docs, then queries it with a small Qwen model. It is designed as the training/prototyping repo for an Edge Impulse docs-aware as…
Downloads · 30 days
0
Access
Public
Updated Jun 24, 2026
Repo size
188 MB
Likes
0
Public
Click a slice to open those files.
.pdf187 MB · 99%
From the Hugging Face model README
This workspace builds a local Retrieval-Augmented Generation index over the Edge Impulse docs, then queries it with a small Qwen model. It is designed as the training/prototyping repo for an Edge Impulse docs-aware assistant that can later be plugged into the Hugging Face MCP demo or another agent.
cd C:\Users\Eoin\git\edgeimpulse=docs-rag-qwen
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m ipykernel install --user --name edgeimpulse-docs-rag-qwen --display-name "Edge Impulse Docs RAG Qwen"
Fetch the docs:
python scripts\fetch_docs.py --source https://docs.edgeimpulse.com/llms.txt
Build the FAISS index. This includes Markdown, text, and PDF files under data/raw_docs, including data/raw_docs/pdfs/*.pdf:
python scripts\build_index.py --docs data\raw_docs --out data\index
Ask a question:
python scripts\ask.py "How do I create an Edge Impulse JWT token?"
python scripts\ask.py "How do I start a training job from the Studio API?"
Run a local API:
python scripts\serve.py --host 127.0.0.1 --port 8080
Then query it:
curl -X POST http://127.0.0.1:8080/ask -H "Content-Type: application/json" -d "{\"question\":\"How do I deploy to Arduino?\"}"
Open notebooks/edge_impulse_docs_rag_qwen.ipynb and select the Edge Impulse Docs RAG Qwen kernel.
The notebook runs the same workflow as the scripts:
data/raw_docs.sentence-transformers/all-MiniLM-L6-v2.data/index.Qwen/Qwen2.5-Coder-0.5B-Instruct--adapter eoinedge/edgeai-docs-embedding-qwen1.5-0.5b-instructsentence-transformers/all-MiniLM-L6-v2IndexFlatIP with L2-normalized vectorshttps://docs.edgeimpulse.com/llms.txtRAG does not train the model weights. It trains/builds the retrieval index. If you later fine-tune a Qwen adapter, keep this RAG layer anyway so the assistant can answer from current docs and PDFs without a new model training run.