Building a Local Knowledge Base and Agent with LLM Here’s a detailed guide on how to create a local knowledge base from your files and build an agent that can interact with this knowledge. Part 1: Building a Local Knowledge Base Step 1: Set Up Your Environment # Create a virtual environment python -m venv […] →Read more
we can build a local knowledge base powered by RAG (Retrieval-Augmented Generation) using: 🔍 ChromaDB (embedded vector DB) 🧠 Ollama (local LLM: Mistral, LLaMA, etc.) ✍️ Go code to ingest documents, embed chunks, and query with context ✅ Prerequisites Install the following tools: # Chroma as a Python backend server pip install chromadb # Ollama […] →Read more
In software service observability, saturation refers to how "full" or constrained a system or service is in terms of its capacity to handle more work. It is one of the "Four Golden Signals" in the Google SRE book: Latency, Traffic (Usage), Errors, and Saturation To understand saturation beyond Usage (traffic), Errors, and Delay (latency), think […] →Read more
给女儿的一封信
There is no excerpt because this is a protected post.
Managing Services with Snap on Ubuntu On Ubuntu, if you want to use snap start commands to run a program as a backend service that automatically restarts when it exits, you’ll need to create and package your application as a Snap with proper service definitions. Creating a Snap with Service Capabilities 1. Create a snapcraft.yaml […] →Read more
AWS credentials 🔍 What is ~/.aws/credentials? This file holds AWS credentials for different user profiles. It’s read by tools like: AWS CLI (aws) AWS SDKs (Python boto3, Java SDK, etc.) Any program using the AWS shared credentials provider Each profile is a named set of AWS credentials (like default, dev-alice, etc.), and contains at minimum: […] →Read more
Chrome Plugin Development – A Beginner’s Guide I understand you’re new to Chrome plugin (extension) development. Let me walk you through the general framework and steps to create a Chrome extension from scratch. Core Concepts of Chrome Extensions Chrome extensions are built using web technologies: HTML (for UI) CSS (for styling) JavaScript (for functionality) JSON […] →Read more
In a Spring Boot project, interceptors are typically implemented using HandlerInterceptor or HandlerInterceptorAdapter (deprecated since Spring 5.3). These interceptors allow you to intercept HTTP requests before they reach the controller. 1. Checking How Many Interceptors Are Registered To see all the interceptors in your Spring Boot application, you can do the following: Approach 1: Print […] →Read more