摘要: Demo import fs from "fs"; import OpenAI from "openai"; const openai = new OpenAI(); async function main() { const transcription = await openai.audio.t 阅读全文
posted @ 2024-07-27 03:00 LexLuc 阅读(1) 评论(0) 推荐(0) 编辑
摘要: A Record (Address Record): An A record points a hostname to a specific IP address12. For example, if you want blog.example.com to point to the server 阅读全文
posted @ 2024-06-05 14:30 LexLuc 阅读(2) 评论(0) 推荐(0) 编辑
摘要: SaaS应用在用户注册账号时,需要发送验证码验证用户账号邮箱正确。但如果用户输入的邮箱不正确,需要 自己手动开发 也是校验邮箱地址有效性的基本原理 校验邮箱格式 校验DNS 校验SMTP服务器响应 https://stackoverflow.com/questions/69412522/what-i 阅读全文
posted @ 2024-05-16 02:02 LexLuc 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 基础版 Few-shot Prompt Role-play Prompt Personality-added Prompt Multi-rounded Prompt Chain-of-Thought Prompt Self-Reflection Prompt 进阶版 Task break-down 阅读全文
posted @ 2023-11-29 16:25 LexLuc 阅读(175) 评论(0) 推荐(0) 编辑
摘要: long context: context length 128k, more accurate over a long context control JSON Mode Function calling, call many functions at once Reproducible outp 阅读全文
posted @ 2023-11-08 01:53 LexLuc 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 配置代理 # set proxy $ git config --global http.proxy http://<账号>:<密码>@<主机>:<端口> $ git config --global https.proxy https://<账号>:<密码>@<主机>:<端口> # check pro 阅读全文
posted @ 2023-10-07 16:53 LexLuc 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1. 下载二进制压缩包 https://www.enterprisedb.com/download-postgresql-binaries 2. 解压后在压缩包的bin目录下执行初始化DB命令 initdb.exe -D .\data -U pguser -W -E UTF8 -A scram-sh 阅读全文
posted @ 2023-09-11 16:27 LexLuc 阅读(231) 评论(0) 推荐(0) 编辑
摘要: # 关键信息记录 ## 1. 在WSL实测`nc`可实现代理流量转发 ``` ssh -i key.pem @ -o "ProxyCommand=nc -X connect -x : %h %p" ``` ## 2. windows无法使用`nc`,通过修改 VS-Code Remote-SSH 插 阅读全文
posted @ 2023-09-02 14:53 LexLuc 阅读(316) 评论(0) 推荐(0) 编辑
摘要: # 优化TF ## TF衰减 > 思考一个问题:一篇文档,里面有提到200次RedCap,一定是2倍相关于另一篇提到100次RedCap吗? $TF$对匹配度的贡献应该是有所衰减的。如何控制衰减曲线的陡峭程度?构造$TF$衰减的匹配度函数的一个trick是引入参数$k$: $$ {TF}^\prim 阅读全文
posted @ 2023-08-18 16:22 LexLuc 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ```bash sudo apt-get install openssl cd /etc/nginx sudo mkdir ssl sudo openssl req -batch -x509 -nodes -days 365 \ -newkey rsa:2048 \ -keyout /etc/ngi 阅读全文
posted @ 2023-07-18 02:00 LexLuc 阅读(6) 评论(0) 推荐(0) 编辑