摘要: AI学习笔记 2026/5/10 主要是搞懂了RAG检索那块的东西,还有LoRA微调的原理 RAG到底是啥? 说白了就是让大模型开卷考试。模型本身是闭卷,全靠训练时背的东西,容易瞎编(幻觉)。现在先查资料再回答,准多了。 流程:用户提问 → 切成向量 → 去向量库找相似的 → 把找到的资料塞给pro 阅读全文
posted @ 2026-05-10 22:14 柳成荫y 阅读(3) 评论(0) 推荐(0)
摘要: 🧠 Java后端学习笔记(MyBatis-Plus + SpringBoot) 📌 基于今日学习内容整理(面试可用版) 一、枚举类(Enum) public enum Status { CANCEL(0, "已取消"), WAIT_PAY(1, "待支付"); private final Int 阅读全文
posted @ 2026-04-27 17:16 柳成荫y 阅读(7) 评论(0) 推荐(0)
摘要: Redis 学习笔记 1. Redis 是什么 Redis 是一个基于内存的 NoSQL 数据库,特点是: 读写快 常用来做缓存 也能做计数器、排行榜、登录状态存储等 2. 常见基础命令 查看/删除 DEL key:删除 key DBSIZE:查看当前库 key 的数量 TTL key:查看 key 阅读全文
posted @ 2026-04-20 17:43 柳成荫y 阅读(9) 评论(0) 推荐(0)
摘要: 今天把 MyBatis-Plus 的基础链路梳了一遍 这篇算是我今天的学习记录,内容主要围绕 Spring Boot、MyBatis-Plus、MySQL 连接、分页、条件构造器这些基础知识。之前看这些概念的时候总觉得都是零散的,今天顺着“项目到底是怎么连上数据库并跑起来的”这条线重新过了一遍,脑子 阅读全文
posted @ 2026-04-19 19:58 柳成荫y 阅读(27) 评论(0) 推荐(0)
摘要: 相交链表 点击查看代码 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = nul 阅读全文
posted @ 2025-12-25 23:15 柳成荫y 阅读(5) 评论(0) 推荐(0)
摘要: 438.找到字符串中所有的字母异位词 思路:固定窗口 点击查看代码 class Solution { public List<Integer> findAnagrams(String s, String p) { List<Integer> result = new ArrayList<>(); i 阅读全文
posted @ 2025-12-24 18:42 柳成荫y 阅读(7) 评论(0) 推荐(0)
摘要: 209. 长度最小的子数组 点击查看代码 class Solution { public int minSubArrayLen(int target, int[] nums) { int n = nums.length; int res = Integer.MAX_VALUE; int sum = 阅读全文
posted @ 2025-12-21 22:33 柳成荫y 阅读(4) 评论(0) 推荐(0)
摘要: 盛最多水的容器 点击查看代码 class Solution { public int maxArea(int[] height) { int n = height.length; int l = 0; int r = n - 1; int res = Integer.MIN_VALUE; while 阅读全文
posted @ 2025-12-20 19:41 柳成荫y 阅读(7) 评论(0) 推荐(0)
摘要: 四数之和 点击查看代码 class Solution { public List<List<Integer>> fourSum(int[] nums, int target) { int n = nums.length; Arrays.sort(nums); List<List<Integer>> 阅读全文
posted @ 2025-12-19 23:37 柳成荫y 阅读(7) 评论(0) 推荐(0)
摘要: 三数之和 点击查看代码 class Solution { public List<List<Integer>> threeSum(int[] nums) { Arrays.sort(nums); int n = nums.length; List<List<Integer>> res = new A 阅读全文
posted @ 2025-12-18 21:53 柳成荫y 阅读(5) 评论(0) 推荐(0)