Skip to content

Commit 63e237d

Browse files
committed
opt
1 parent 7f36de9 commit 63e237d

File tree

5 files changed

+46
-31
lines changed

5 files changed

+46
-31
lines changed

Ai/Rag.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ categories:
1010
- 1. [RAG](#rag)
1111
- 1.1. [Rag 评测](#rag-评测)
1212
- 1.2. [实践](#实践)
13+
- 2. [难题](#难题)
14+
- 2.1. [无信息输入](#无信息输入)
1315

14-
💠 2025-06-03 11:29:27
16+
💠 2025-07-21 20:20:05
1517
****************************************
1618
# RAG
1719
> [[Large Language Models with Semantic Search] - 引言與關鍵字搜尋Keyword/lexical Search - HackMD](https://hackmd.io/@YungHuiHsu/rku-vjhZT)
@@ -31,6 +33,7 @@ categories:
3133

3234
> [基于大语言模型知识问答应用落地实践 – 知识库构建(上) | 亚马逊AWS官方博客](https://aws.amazon.com/cn/blogs/china/practice-of-knowledge-question-answering-application-based-on-llm-knowledge-base-construction-part-1/)
3335
36+
> [检索增强生成:革命性技术还是过度承诺?_生成式 AI_InfoQ精选文章](https://www.infoq.cn/article/lvqs5lg7et17i3wxvtko)
3437
3538
## Rag 评测
3639
> [RAG 评测调研:框架、指标和方法 | EvalScope](https://evalscope.readthedocs.io/zh-cn/latest/blog/RAG/RAG_Evaluation.html)
@@ -57,4 +60,8 @@ categories:
5760
> [RAG最佳实践 - 知乎](https://zhuanlan.zhihu.com/p/5834624096)
5861
> [Searching for Best Practices in Retrieval-Augmented Generation](https://arxiv.org/pdf/2407.01219)
5962
60-
[RAG 全流程](https://waytoagi.feishu.cn/wiki/QBssw7z4oiGS40kDlltcjozBnxc)
63+
[RAG 全流程](https://waytoagi.feishu.cn/wiki/QBssw7z4oiGS40kDlltcjozBnxc)
64+
65+
# 难题
66+
## 无信息输入
67+
> 例如:给定了体检报告,然后用户提问:解读下这个报告。这句话在R阶段找不到有效的信息 模糊性太大

Database/PostgreSQL.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ categories:
2929
- 9.1. [Java使用](#java使用)
3030
- 9.2. [导入导出](#导入导出)
3131

32-
💠 2025-05-07 17:32:24
32+
💠 2025-07-21 20:20:05
3333
****************************************
3434
# Postgresql
3535

@@ -150,9 +150,7 @@ text varchar 最大1Gb
150150

151151
- 创建 create sequence table_name_id_seq as integer;
152152
- 使用 select nextval('prompt_version_config_id_seq'::regclass);
153-
154-
155-
153+
- 修改表字段关联到 已有序列 ALTER TABLE table ALTER COLUMN id SET DEFAULT nextval('table_seq'::regclass);
156154

157155
# DDL
158156
> 注意PG的查看表,函数,视图的定义(DCL)时很复杂,没有直观的语句类似`show create table`可以用,通常使用工具来查看表定义和函数定义视图定义等等。

Database/PostgreSQLAdvance.md

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ categories:
2121
- 5. [集群](#集群)
2222
- 6. [Explain](#explain)
2323

24-
💠 2025-04-16 10:16:34
24+
💠 2025-07-21 20:20:05
2525
****************************************
2626
# PostgreSQL Advance
2727

@@ -33,28 +33,31 @@ categories:
3333
## 元数据
3434
```sql
3535
-- 查询表元数据(唯一性,必填,字段类型)
36-
select a.attname as fieldName,
37-
d.typname as type,
38-
(case
39-
when atttypmod - 4 > 0 then atttypmod - 4
40-
else 0
41-
end) length,
42-
43-
(case
44-
when (select count(*)
45-
from pg_constraint
46-
where conrelid = a.attrelid and conkey[1] = attnum and contype = 'u') > 0 then 'Y'
47-
else 'N'
48-
end) as un,
49-
(case
50-
when a.attnotnull = true then 'Y'
51-
else 'N'
52-
end) as nullable,
53-
col_description(a.attrelid, a.attnum) as comment
54-
from pg_attribute a
55-
left join pg_class c on a.attrelid = c.oid
56-
left join pg_type d on a.atttypid = d.oid
57-
where attstattarget = -1 and c.relname = 'table_test'
36+
select a.attname as fieldName,
37+
d.typname as type,
38+
(case
39+
when atttypmod - 4 > 0 then atttypmod - 4
40+
else 0
41+
end) length,
42+
43+
(case
44+
when (select count(*)
45+
from pg_constraint
46+
where conrelid = a.attrelid
47+
and conkey[1] = attnum
48+
and contype = 'u') > 0 then 'Y'
49+
else 'N'
50+
end) as un,
51+
(case
52+
when a.attnotnull = true then 'Y'
53+
else 'N'
54+
end) as nullable,
55+
col_description(a.attrelid, a.attnum) as comment
56+
from pg_attribute a
57+
left join pg_class c on a.attrelid = c.oid
58+
left join pg_type d on a.atttypid = d.oid
59+
where attstattarget = -1
60+
and c.relname = 'table_test'
5861
```
5962

6063
## 硬解析和软解析

Skills/Application/Editor.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ categories:
2323
- 1.6.3. [插件](#插件)
2424
- 1.6.4. [实践](#实践)
2525
- 1.6.5. [vscode server](#vscode-server)
26+
- 1.6.6. [Java](#java)
2627
- 1.7. [Atom](#atom)
2728
- 1.8. [Gedit](#gedit)
2829
- 1.9. [notepadqq](#notepadqq)
@@ -39,7 +40,7 @@ categories:
3940
- 3. [十六进制 Hex](#十六进制-hex)
4041
- 4. [EditorConfig](#editorconfig)
4142

42-
💠 2025-05-15 15:33:14
43+
💠 2025-07-21 20:20:05
4344
****************************************
4445
# 文本编辑器
4546

@@ -184,6 +185,11 @@ _个人配置_
184185
185186
[Docker: vscode-server](https://hub.docker.com/r/ahmadnassri/vscode-server)
186187

188+
### Java
189+
重点插件组: Extension Pack for Java
190+
191+
命令 `java:Reload project`
192+
187193
***********************************
188194
## Atom
189195
> Github 推出的编辑器 [淘宝Mirror](https://npm.taobao.org/mirrors/atom)

Skills/Serialization/Serialization.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ categories:
2626
- 3.9. [Avro](#avro)
2727
- 3.10. [Kyro](#kyro)
2828

29-
💠 2025-05-06 19:23:42
29+
💠 2025-07-21 20:20:05
3030
****************************************
3131
# 序列化
3232
> [参考: 序列化和反序列化](https://tech.meituan.com/2015/02/26/serialization-vs-deserialization.html)
@@ -106,6 +106,7 @@ SOAP是一种采用XML进行序列化和反序列化的协议,它的IDL是WSDL
106106
- [Amazon Ion](https://amazon-ion.github.io/ion-docs/index.html) 多语言实现
107107
- [Smile](https://github.com/FasterXML/smile-format-specification)
108108
- jsonl 一行一个json对象
109+
- [JSON5 – JSON for Humans | JSON5](https://json5.org/)
109110

110111
## MessagePack
111112
> [Github](https://github.com/msgpack) | [Site](https://msgpack.org/)

0 commit comments

Comments
 (0)