Jinguo Blog - Technical Knowledge Base
website·Indexed 30 days ago
https://blog.jinguo.linkA technical blog and knowledge base covering network engineering, operating systems, and developer tools. It features guides on F5 iRules, Cisco Nexus vPC, Docker, Git, Ansible, and Linux distributions including Ubuntu, Debian, and RHEL8, as well as insights into AI technologies like RAG and NVIDIA GPUs.
What's inside Jinguo Blog
- Traefik is an open-source edge router and reverse proxy. Unlike traditional reverse proxies like Nginx, Traefik provides automatic service discovery by retrieving routing information directly from the services. It natively supports multiple cluster technologies including Kubernetes, Docker, Docker Swarm, AWS, Mesos, and Marathon. Key advantages include real-time automatic updates without requiring restarts or connection interruptions and a built-in dashboard for management.
Understand the core concepts and benefits of Retrieval-Augmented Generation (RAG)
Retrieval-Augmented Generation (RAG) combines information retrieval with generative models. It functions by retrieving relevant evidence from external knowledge bases (documents, databases, internet) before generating a response, effectively acting as an 'external knowledge base' or 'tentacle' for the LLM 'brain'.
Key benefits include:
- Overcoming Knowledge Cut-offs: Provides real-time information beyond the model's static training data.
- Data Privacy: Allows the use of local, private, or domain-specific data without retraining the model.
- Interpretability: Reduces hallucinations by providing factual evidence and allowing the system to cite source documents.
- Cost Optimization: Reduces input token costs for long texts by retrieving only the most relevant snippets rather than processing the entire document.
Understand EDNS Client Subnet (ECS) for DNS requests
EDNS Client Subnet (ECS) is a DNS extension that allows a Local DNS (LDNS) server to include the client's IP address (or subnet) in the DNS request forwarded to an authoritative DNS server. This solves the problem where authoritative servers only see the IP of the LDNS server, enabling more precise responses based on the actual client's location (topology-based routing).Understand AI Agent Architecture and Components
An AI Agent is a computer program designed to independently perform tasks and react to its environment. A complete Agent system integrates a Large Language Model (LLM) with planning, feedback, and tools. The architecture consists of three primary layers: the Perception Layer, Decision Layer, and Execution Layer. This structure enables the agent to exhibit autonomy, reactivity, proactivity, and social ability.Understand the relationship between AI, Machine Learning, and Deep Learning
Artificial Intelligence (AI) is the broad field of creating intelligent systems. Machine Learning (ML) is a method used to achieve AI by using algorithms to analyze data, learn from it, and make decisions or predictions about real-world events (e.g., spam detection, house price prediction). Deep Learning is a specific technique within Machine Learning that mimics human neural networks to build models for data analysis (e.g., facial recognition, semantic understanding, autonomous driving).Self-hosted Docker application recommendations
A curated list of useful Docker-based tools for self-hosting:
- File & Data Management:
xhofe/alist(multi-storage file list),SeaTable(online collaborative tables),netboxcommunity/netbox(DCIM system). - Media & Documents:
jellyfin(media server),Stirling-PDF(PDF toolkit),Calibre/talebook(ebook management),immich(photo/video backup). - Utilities & DevTools:
coderlin/image-compress(image compression),portainer/portainer-ce(Docker GUI),traefik/traefik(edge router),wagoodman/dive(image layer explorer),it-tools(developer utility collection),n8n(workflow automation). - Security & Identity:
Bitwarden(password manager),openldap(LDAP server),flare(utility). - Networking:
ddns-go(Dynamic DNS),wireguard(VPN).
- File & Data Management:
Use Model Context Protocol (MCP) for standardized tool access
The Model Context Protocol (MCP), developed by Anthropic, standardizes API access to services (like GitHub or weather apps) to avoid manual tracking, description, and updating of JSON schemas for every tool.
MCP consists of three components:
- MCP Host: The LLM application managing the connection (e.g., Cursor).
- MCP Client: Maintains a 1:1 connection with the Host.
- MCP Server: Provides the actual context, tools, and functionality to the LLM.
Workflow: The Host asks the Server for available tools $ ightarrow$ LLM selects a tool $ ightarrow$ Host sends request to Server $ ightarrow$ Server returns result $ ightarrow$ LLM parses the answer for the user.
Understand MSA (Multi-Source Agreement) standards for optical modules
The Multi-Source Agreement (MSA) is a non-official industry agreement between manufacturers to standardize the physical dimensions, electrical interfaces, and optical interfaces of transceiver modules. This ensures interoperability and interchangeability between different vendors, allowing third-party modules to work in network equipment (switches/routers) from different brands and reducing costs by preventing vendor lock-in.Manage Git configuration levels and precedence
Git configurations are stored at three different levels. When the same setting exists at multiple levels, the more specific level takes precedence: local > global > system.Implement Long-Term Memory in LLM Agents
Long-term memory in LLM Agents is used to retain information across different sessions (e.g., remembering research from previous conversations). According to the 'Cognitive Architecture for Language Agents' paper, memory can be categorized into types such as Semantic Memory (facts about the world) and Working Memory (current and recent context), which are often stored in different databases to support the agent's framework.Design Multi-Agent Collaboration systems
Multi-agent frameworks address the limitations of single agents (such as tool overload and context complexity) by distributing tasks among specialized agents.
Core components of multi-agent architectures include:
- Agent Initialization: Defining the profile, tools, memory, and planning capabilities of specialized agents.
- Agent Orchestration: Coordinating communication between agents, often managed by a 'Supervisor' who assigns tasks to specific agents.
Popular modular frameworks for implementing these systems include AutoGen, MetaGPT, and CAMEL. In CAMEL, for example, a specific 'AI User' role is defined to guide the process and interact with an 'AI Assistant' to solve queries.
Understand Vector Embeddings and Word2Vec
Vector embedding is the process of converting semantic data (like text or images) into numerical vectors. This allows the semantic relationship between items to be quantified as the distance between vectors in a high-dimensional space.
Word2Vec is a representative model for text embeddings that uses two primary training methods:
- CBOW (Continuous Bag-of-Words): Predicts a target word based on its surrounding context words.
- Skip-Gram: Predicts surrounding context words based on a single target word.