What is k3s K3s is a fully compliant Kubernetes distribution with the following enhancements: K8S 的 mini 版本, 用来边缘计算 Distributed as a single binary or minimal container image. — 以一个迷你的二进制包或容器镜像包分发 Lightweight datastore based on sqlite3 as the default storage backend. etcd3, MySQL, and Postgres are also available. — 基于 sqlite 的轻量级数据存储 Wrapped in simple launcher […] →Read more
Overview LangChain is a framework to build with LLMs by chaining interoperable components. LangGraph is the framework for building controllable agentic workflows. build an application install library pip install langchain pip install -qU langchain-openai example 1 #!/usr/bin/env python3 from typing import List from langchain_openai import ChatOpenAI from langchain_core.output_parsers import StrOutputParser from langchain_core.prompts import ChatPromptTemplate import […] →Read more
Zero-Shot Zero shot学习,也称为零样本学习(Zero-Shot Learning,简称ZSL),是一种机器学习范式,它允许模型在训练阶段从未见过的类别上进行预测和分类。这种学习方式特别适用于那些难以获取大量标注数据的领域,或者在面对罕见或未知类别时的场景。 在Zero shot学习中,模型通常会使用辅助信息,如类别的文本描述、属性或嵌入表示等,来理解在训练阶段未出现过的类别。这些辅助信息帮助模型建立起类别之间的语义联系,从而在没有直接样本的情况下也能进行有效的预测。 Use Emotional Language 使用情感语言 Assign a Role 分配角色 Define a Style 定义风格 #!/usr/bin/env python3 from pydantic import BaseModel import simple_llm_agent class Email(BaseModel): subject: str message: str client = simple_llm_agent.LlmAgent() def generate_email(subject, to, sender, tone): system_prompt = "You are a smart sesecretary" user_prompt = f""" Write an email about {subject} […] →Read more