Typical Demo: NVR Intelligent Analysis
Based on open-source Frigate NVR software and A8625 LLM + RAG capabilities, this demo enables intelligent monitoring and event analysis.
Deploy Frigate Environment on Raspberry Pi
bash
# Install Docker and docker-compose
sudo apt update && sudo apt install docker.io docker-compose -y
# Create working directory
sudo mkdir -p /home/aidlux/frigate
cd /home/aidlux/frigate
# Create docker-compose.yml (configuration can refer to OpenAI-compatible API examples in "LLM Service Deployment")
sudo vim docker-compose.yml
# Start Frigate container
sudo docker-compose up -d
# Check initial admin password (generated only at first run)
sudo docker logs -f frigateIntegrate RAG Knowledge Base
Add RAG invocation settings to Frigate configuration to enable event analysis based on an industry knowledge base:
bash
genai:
provider: openai
base_url: http://<A8625_IP>:8888/v1
api_key: "any string"
model: Qwen2.5-VL-3B-392x392-8625
review:
genai:
enabled: true
preferred_language: Simplified Chinese
prompt: "Analyze safety risks in this surveillance image based on the production safety knowledge base. Focus on non-compliant operations, equipment anomalies, and environmental risks. Please respond in Chinese and provide rectification suggestions."