最近小学了一手紫微斗数,紫微斗数用于算命,看运势,以下是大致步骤:

  1. 定命宫身宫以及星斗;
  2. 结合命格以及星斗特性进行分析;
  3. 先看命宫;
  4. 二看十年大运;
  5. 最后看流年,甚至流月流日;

那我们看什么方面的运势:

  1. 发展方向:公务员or商人or技术岗or军人等等;
  2. 财运权势科甲:这辈子or这阵子有财无财、有权无权、有无学问才艺;
  3. 忌讳:这辈子or这阵子在什么事情上不顺,比如说生意、健康等等;
  4. 其他:婚姻从哪来、哪里会有健康问题、迁徙去外地合不合适等等;

命相同参,八字结合面相手相一起看。

可结合阳宅一起分析,天+地。

一、大模型开发指南

参考资料:https://datawhalechina.github.io/llm-universe/#/

现有大模型: 1. 闭源: 1. GPT 2. Gemini 3. 文心一言 4. 讯飞星火 2. 开源 1. LLaMa 2. 通义千问

RAG和微调是两种提升模型效果的手段。

LangChain为主流的大模型应用开发框架。

通过提示工程、数据工程、业务逻辑分解等手段来充分发挥大模型能力。

高效Prompt的两个关键原则:编写清晰、具体的指令和给予模型充足思考时间。给予模型充足思考时间的大意是说让模型逐步推理,而不要求模型一口气吃成大胖子。

将单个文档按长度或者按固定的规则分割成若干个chunk,然后将每个chunk转化为词向量。

向量检索主要考虑余弦相似度和MMR。

提示模版

js-openaiAPI文档:https://platform.openai.com/docs/api-reference/authentication

二、提示工程

参考资料:https://www.promptingguide.ai/zh

提示技术

零样本提示。

利用上下文学习:少样本提示。

CoT、零样本CoT、Auto-CoT

自我一致性:给予多个QA进行训练,最后输出多个回答,采取最一致的回答作为答案。

生成知识提示:先提示生成知识,再提问题要答案。

链式提示:将任务分解成子任务。

思维树:将生成、评估以及搜索算法相结合,以便验证与回溯。

RAG:处理知识密集型任务,这里的微调是什么意思?用专业知识喂出一个适合垂直领域的ai

三、LLMBook

九、部署与编码

解码:针对输入内容逐个单词生成输出内容的文本。

基础信息

区块链浏览器:https://explorer.solana.com/

测试网水龙头:https://solfaucet.com/

Action示例: 1. https://solana-actions.vercel.app/ 2. https://x.com/MetaHub_DAO/status/1807821940541083659 3. https://x.com/telagacharity/status/1806779884364325067

Action相关文档: 1. https://solana-developers.github.io/solana-actions/ 2. https://solana.com/docs/advanced/actions 3. https://docs.dialect.to/documentation/actions/guide-build-your-first-action

Action注册表:https://actions-registry.dialect.to/all

样例视频: 1. https://x.com/0xnze/status/1806343080758448218 2. https://www.youtube.com/watch?v=m_feBl0ROik

Action代码库: 1. https://github.com/Stargazer10101/solana-actions-examples 2. https://github.com/dialectlabs/actions

Action2Blink:https://dial.to/

Blink样式:https://github.com/dialectlabs/blinks

分析文章: 1. https://ytm.app/2024/06/30/solana%e4%b8%a4%e4%b8%aa%e6%9c%80%e6%96%b0%e8%a7%84%e8%8c%83action%e5%92%8cblink%e4%bb%8b%e7%bb%8d%e5%8f%8a%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af/ 2. https://news.cnyes.com/news/id/5623872

promise

目的是为了解决回调地狱

then(): 当promise状态为fulfilled时调用;

catch(): 当promise状态为rejected时调用;

finally(): 无论promise状态都会调用;

async和await

async: 将函数的返回值包装成promise;

await: 等待当前异步操作, 完成后才执行后续异步操作;

promise操作

  • promise.all(): 当所有promise状态都为fulfilled了才执行;
  • promise.race(): 当任意promise有结果了就执行;
  • promise.allSettled: 当所有promise都有结果了才执行;
  • promise.any(): 当任意promise状态为fulfilled了就执行;

  • display: grid;
  • grid-column-start:
    • 值为n, 表示从第n个格子开始;
    • span n, 表示从end的位置往前推n格;
    • grid-row-start同理;
  • grid-column-end:
    • 值为n, 表示到第n个格子结束;
    • span n, 表示从start的位置开始持续n格;
    • grid-row-end同理;
  • grid-column:
    • n/m, 表示从第n格开始到第m格结束;
    • grid-row同理;
  • grid-area:
    • 打包grid-row和grid-column;
  • order:
    • 子元素上调整位置;
  • grid-template-columns:
    • 值为各个格子的横向大小;
    • repeat(n, m), 表示有n格, 各格为m的大小;
    • grid-template-rows同理;
  • grid-template:
    • 打包grid-template-rows和grid-template-columns;

  • display: flex;
  • justify-content:
    • flex-start, flex-end;
    • center;
    • space-between, space-around;
  • align-items:
    • flex-start, flex-end;
    • center;
    • baseline, stretch;
  • flex-direction:
    • row, row-reverse;
    • column, column-reverse;
  • order:
    • 子元素上调整单个元素的位置, 以原位置为0进行调整;
  • align-self:
    • 子元素上调整单个元素的正交位置, 值同align-items;
  • flex-wrap:
    • wrap, wrap-reverse;
    • nowrap;
  • flex-flow:
    • 打包flex-direction和flex-wrap;
  • align-content:
    • 和align-items的不同: align-content determines the spacing between lines, while align-items determines how the items as a whole are aligned within the container.
    • flex-start, flex-end;
    • center;
    • space-between, space-around;
    • stretch;

  1. 将博客项目中除node_modules外的所有文件拷贝到新电脑;
  2. 安装hexo工具npm install hexo-cli -g
  3. 进入项目路径并执行npm install
  4. hexo clean后即可;
  5. hexo g时若出现pandoc exit null,执行brew install pandoc安装pandoc;

重拾落灰已久的香橙派,mark一下连接步骤:

  1. arp -a查看目前网络情况
  2. wlan设置打开共享,共享给“以太网”
  3. 用网线连接香橙派
  4. arp -a查看新增配置,找出香橙派ip地址
  5. ssh连接,此时网线两侧的灯都是亮的

现有开源钱包案例参考:

  1. 波卡钱包插件:https://github.com/polkadot-js/extension
  2. talisman钱包:https://github.com/talismansociety
  3. subwallet:https://github.com/Koniverse/SubWallet-Mobile
  4. powerpod:https://github.com/PowerPod

文档:

  1. Polkadot开发者文档:https://polkadot.js.org/docs/util-crypto/examples/
  2. Subwallet用户文档:https://docs.subwallet.app/main/

一、了解PEAQ

介绍peaq网络的博客:首條 DePIN 聚合公鏈 Peaq Network !AI+RWA 打造最大機器物聯網 - 每日幣研

peaq,krest,agung之间的关系为主网,金丝雀网络和测试网。目前只上线了krest和agung网络,peaq网络预计24Q1末上线。

金丝雀网络,即canary network,有限代币供应的主网,类似于“实验网”,类比kusama网络。

二、相关文档搜集

peaq项目网址:

  1. https://www.peaq.network/
  2. https://docs.peaq.network/

krest浏览器网址:

  1. Polkadot/Substrate Portal
  2. Subscan | Aggregate Substrate ecological network high-precision Web3 explorer

agung浏览器网址:

  1. Polkadot/Substrate Portal
  2. Subscan | Aggregate Substrate ecological network high-precision Web3 explorer
  3. Polkadot/Substrate Portal
  4. PEAQ ETH Chain POA Explorer

三、PEAQ发币可行性

官方博客-在peaq网络上部署智能合约

四、获得$KREST和$AGUNG方式

目前只能在MEXC和XT.com上获得krest代币。

官方教程-领agung代币

五、部署合约

AGUNG部署合约

官方博客-在agung网络上部署智能合约

KREST部署合约

类似AGUNG网络部署合约

  1. 在交易所购买krest代币后提现到波卡钱包。
  2. 在krest浏览器中将波卡钱包中的krest代币转账到小狐狸钱包中,需要将小狐狸钱包地址转成波卡钱包地址。
  3. 用小狐狸钱包账户在remix上选择krest网络并部署合约,部署后在krest的subscan浏览器合约栏中可以看见部署的合约。

六、参考资料

钱包网络参数设置

metamask中krest和agung网络参数设置:

  1. Quickstart | peaq
  2. chainlist上开启测试网选项后可搜到

代币跨钱包

krest和agung代币跨钱包教程:

  1. https://github.com/kj89/testnet_manuals/blob/main/peaq/token_transfer.md
  2. Metamask | peaq

注意metamask中添加的网络和进行转账的网络要一致

地址转换工具

substrate和eth地址转换工具:

  1. Substrate EVM Address Converter
  2. Substrate JS Utilities
  3. SNOW Address Converter
0%