实验 | 如何使 Ollama 结构化输出 JSON 样式的结果

开源 LLMS 越来越受欢迎,Ollama 的 OpenAI 兼容性后来发布了,这使得使用 JSON 模式获取结构化输出成为可能。在本篇博文的结尾,您将了解如何有效地利用 Instructor 和 ollama。但在继续之前,让我们先探讨一下修补的概念。Open-source LLMS are gaining popularity, and the release of Ollama's OpenAI compatibility later it has made it possible to obtain structured outputs using JSON schema.By the end of this blog post, you will learn how to effectively utilize instructor with ollama. But before we proceed, let's first explore the concept of patching....

2025-02-07 · 2 min · 大邓

教程 | 如何使用 Ollama 下载 & 使用本地大语言模型

Ollama是一款开源应用程序,可让您使用 MacOS、Linux 和 Windows 上的命令行界面在本地运行、创建和共享大型语言模型。Ollama 可以直接从其库中访问各种 LLM,只需一个命令即可下载。下载后,只需执行一个命令即可开始使用。这对于工作量围绕终端窗口的用户非常有帮助。如果他们被困在某个地方,他们可以在不切换到另一个浏览器窗口的情况下获得答案。Ollama is an open source application that allows you to run, create, and share large language models locally using a command line interface on MacOS, Linux, and Windows. Ollama can access a variety of LLMs directly from its library and can be downloaded with just one command. Once downloaded, it only takes one command to get started. This is very helpful for users whose workload revolves around a terminal window. If they are stuck somewhere, they can get the answer without switching to another browser window....

2025-02-07 · 4 min · 大邓

使用 Word2Vec 和 TF-IDF 计算五类企业文化

我们使用最新的机器学习技术——**词嵌入模型**——和209,480份盈利电话会议记录创建了一本文化词典。我们对2001年至2018年期间的62,664个公司年度观察数据的**五个公司文化价值——创新、诚信、质量、尊重和团队合作**进行评分。结果表明,创新文化比公司创新的通常衡量标准——研发支出和专利数量——更广泛。此外,我们还表明,企业文化与业务结果相关,包括运营效率、风险承担、盈利管理、高管薪酬设计、企业价值和交易等,并且文化-绩效联系在困难时期更加显著。最后,我们提供了初步证据,表明企业文化受到重大公司事件(如合并和收购)的影响。...

2024-12-31 · 3 min · 大邓

如何用图嵌入(网络思维和嵌入思维)表征企业,表征高管的职业经历

管理的本质是一种实践,在某些情形下,阅历比简历更重要,丰富的职业经历有助于企业高管形成多元化的思维结构、广阔的管理视野、丰富的社会资源和过人的胆识。因此,对于企业而言,了解高管的职业经历非常重要,这可以帮助企业更好地了解高管的背景和潜力,从而更好地为企业的发展提供支持。而研究高管的个人特质,已有的研究,主要从年龄、性别、学历等类别型变量开展研究,即使从从职业经历研究,也是作为离散变量,没有充分挖掘职业经历的信息。...

2024-12-31 · 3 min · 大邓

实验 | 使用 Crewai 和 Ollama 构建智能体(AI Agent)帮我撰写博客文章

大邓是一个技术博主,运营着公众号,每天要消耗大量的时间进行选题、创作、编辑。随着LLM的流行, 能否让LLM替我进行选题、创作、编辑,从此进入躺平式人生新阶段。 这不是做梦, 使用软件Ollama、Python的CrewAI库,设计好智能体(AI Agent),就能实现大邓的白日梦。In technical terms an AI Agent is a software entity designed to perform tasks autonomously or semi-autonomously on behalf of a user or another program. These agents leverage artificial intelligence to make decisions, take actions, and interact with their environment or other systems....

2024-08-05 · 4 min · 大邓