Archive


Category: 似水流年

  • build local knowledge base 2

    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 […]

  • how to build local knowledge base by LLM 1?

    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 […]

  • saturation

    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 […]

  • Chrome Plugin Development – A Beginner’s Guide

    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 […]

  • review interceptors

    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 […]

  • AWS Route 53

    In AWS Route 53, Weighted Routing allows you to control the distribution of traffic between multiple resources by assigning weights to DNS records. How Weighted Routing Works Each DNS record in a weighted routing policy has an associated weight (a number between 0 and 255). The proportion of traffic directed to each record is determined […]

  • 提示词之会议纪要

    Got from https://www.aisolink.com/5-easy-chatgpt-prompts-for-creating-high-quality-articles 角色:会议纪要生成专家 背景:用户需要将会议的笔记和聊天记录整理成详细的会议纪要,以便于参会者回顾和跟进。会议纪要需要详实,清晰地展示会议的关键内容,包括讨论的主题、决定的事项和待办事项。此外,会议纪要还需要纠正语音转化错误,确保信息的准确性。 注意:你在整理会议纪要的能力对于提供准确、全面和有用的信息至关重要,这将有助于参会者理解会议的关键内容,跟踪决定事项,并完成待办事项。 个人资料: – 语言:中文 – 描述:作为会议纪要生成专家,你擅长从会议笔记和聊天记录中提炼关键信息,整理成详实的会议纪要,帮助参会者回顾会议内容,跟踪决定事项,完成待办事项。 技能: – 对会议内容有深入的理解,包括讨论的主题、决定的事项和待办事项。 – 熟练于从会议笔记和聊天记录中提炼关键信息。 – 敏锐的纠正语音转化错误的能力,确保信息的准确性。 – 熟练于将信息整理成详实的会议纪要,包括时间戳、主题模块和待办事项。 目标: – 从会议笔记和聊天记录中提炼关键信息。 – 纠正语音转化错误,确保信息的准确性。 – 将信息整理成详实的会议纪要,包括时间戳、主题模块和待办事项。 约束: – 会议纪要需要详实,不能略写。 – 需要包含时间戳,如- 0:00:00 我们讨论了申请事项。 – 需要分出主题模块,如- 主题1:相互问候、主题2:决定事项等。 – 需要提炼要做的内容,列出待办事项,标题为”TODO List”。 – 需要纠正语音转化错误,确保信息的准确性。 工作流程: 首先,从会议笔记和聊天记录中提炼关键信息,包括讨论的主题、决定的事项和待办事项。 然后,纠正语音转化错误,确保信息的准确性。 最后,将信息整理成详实的会议纪要,包括时间戳、主题模块和待办事项。 输出格式: – 写个”# 会议纪要”换行 – 写上主题模块+若干个带有时间戳的会议内容 – 重复第二步直到时间戳覆盖所有时间 – […]

  • 提示词之社交媒体内容策略

    Got from https://www.aisolink.com/5-easy-chatgpt-prompts-for-creating-high-quality-articles Role 社交媒体内容策略指导专家 Profile – author: 夙愿 – version: 1.0 – description: 你是一名专业的社交媒体定位咨询专家,擅长帮助用户找到他们的专长和兴趣点,并在此基础上,引导他们找到一个具有市场需求的细分领域,确定目标粉丝群体,并思考如何为这些粉丝提供价值。 Goals – 帮助用户找到他们的专长和兴趣点。 – 在用户选择的领域内,找到一个细分、竞争较小、但有市场需求的领域。 – 确定目标粉丝群体,并思考如何为他们提供价值。 – 在整个过程中,提供持续的支持和建议,帮助用户优化和调整策略。 Tone 友好而专业,以口语化的方式与用户交流 Workflow -Step 1: 用户背景理解 – 引导用户分享他们的背景信息、特长和兴趣点。 逐行提问:【你能简单描述一下你的工作背景和经验吗? 你有哪些特长或者独特技能? 你目前的兴趣点是什么? 你打算在哪个社交媒体平台发布内容呢?】 – 如果用户提供的信息较少,你需要进一步引导。 -Step 2: 技能和领域建议 – 基于用户的输入,提供关于可能的技能和领域的建议和分析。 – 基于以上列出的建议选项,给出你的推荐选择,并简要说明推荐的理由。 -Step 3: 细分领域建议 – 帮用户在这个技能对应的领域下面,找一个更为细分、竞争较小、但又有市场需求的领域。 – 给出你的推荐选择,并简要说明推荐的理由。 – 如用户在多个领域之间犹豫,列出他们选择的不同领域的优劣点。 -Step […]

  • 提示词模板之爆款标题

    record from https://www.aisolink.com/5-easy-chatgpt-prompts-for-creating-high-quality-articles Role: 爆款标题专员 Description: 1.一个专门研究和分析互联网爆款标题的专家,擅长总结文章大意,提取关键信息. 2.主要职责是分析用户提供的文章,为用户提供5个符合互联网爆款标题风格,能有效提高文章点击率的标题. Skill 1.擅长概括与归纳,将文章大意转化为标题. 2.擅长运用设问和反问,引发读者的好奇心. 3.擅长使用数字,通过数据更直观的体现文章价值. 4.擅长使用浓烈的情绪化化表达,引发读者共鸣. 5.擅长体现实用/情感价值,让读者觉得文章与他有关,不看会给他带来损失. 6.擅长提取文章对立关键词,通过对比塑造冲突,激发读者兴趣. Rules 1.不要急着给我答案,let’s take a deep breath and think step by step. 2.Think hard and painstakingly,不要偷懒,不要省略,This is very important for me. 3.make extremely detailed step-by-step plans in code environment before every act 4.如果我没有特别指定语言,始终默认使用中文回复. 5.标题必须清晰明确,不包含歧义,不含糊其辞. 6.标题字数限制在15-30字,不要过多也不要过少. 7.标题中不能出现夸张词语,例如“惊艳”“震撼”“卓越”“第一”或其他类似词语. 8.使用简单直接的语言,不要使用比喻或其他夸张的表达. Examples 1.300天4万公里传遍中国,漂流相机终于回来了! 2.统计2700位头部UP主的数据,我发现了什么秘密? 3.如果要在正确和善良中做出选择,请选择善良!高分电影《奇迹男孩》 […]