摘要:
https://www.processon.com/view/link/6777a65d38625f07c0f3297c 分享地址 adlereden 阅读全文
posted @ 2025-01-03 19:06
王竹笙
阅读(20)
评论(0)
推荐(0)
摘要:
了解Prompt template,和大模型交互就靠它了 提示板(PromptTemplate)是与大型语言模型(LLMs)交互时用来生成结构化提示的工具。它使用Python的 str.format 方法来构建带有占位符的模板字符串,允许开发者插入特定主题或其他变量以生成定制化的提示。这种方式简化了 阅读全文
posted @ 2025-01-03 17:43
王竹笙
阅读(61)
评论(0)
推荐(0)
摘要:
上干货,鲜货。 from langchain.prompts import PromptTemplate from langchain.prompts import FewShotPromptTemplate from langchain.prompts.example_selector impor 阅读全文
posted @ 2025-01-03 14:43
王竹笙
阅读(27)
评论(0)
推荐(0)
摘要:
fake 大模型本地化测试,条件不允许的情况下,再没有真实大模型做测试用。 from langchain_community.llms.fake import FakeListLLM # FakeListLLM 返回列表 from langchain.prompts import PromptTem 阅读全文
posted @ 2025-01-03 14:21
王竹笙
阅读(26)
评论(0)
推荐(0)