智能体开发,实现自定义知识库,基于 LangChain,qwen 7b, ollama, chatopera | LLMs

Agent built with LangChain, and Chatopera Cloud

By themselves, language models can't take actions - they just output text. A big use case for LangChain is creating agents. Agents are systems that use LLMs as reasoning engines to determine which actions to take and the inputs necessary to perform the action. After executing actions, the results can be fed back into the LLM to determine whether more actions are needed, or whether it is okay to finish. This is often achieved via tool-calling.

本教程示例程序:https://github.com/hailiang-wang/llm-get-started/tree/master/005_agent_langchain

Config custom knowledge base with Chatopera Cloud Services, https://bot.chatopera.com/

Leverge chat routes with LLMs - e.g. mistral-nemo, myaniu/qwen2.5-1m:7b, myaniu/qwen2.5-1m:14b.

RAG & Agent

Start

First, install ollama, next, run ollama pull mistral-nemo:latest, checkout mistral-nemo.

Next, install pip deps.

复制代码
pip install -r requirements.txt

Then, config env file.

复制代码
cp sample.env .env # Modify key-values in .env

At last, run

复制代码
./start.sh

Other tool calling enabled models

复制代码
myaniu/qwen2.5-1m:7b
myaniu/qwen2.5-1m:14b
相关推荐
眠りたいです4 小时前
使用LangChain进行AI应用构建-RAG及相关核心组件认识(二)
人工智能·langchain·rag
怕浪猫12 小时前
第6章 链(Chains):构建可组合的工作流
langchain·llm·ai编程
斌味代码12 小时前
RAG 实战:用 LangChain + DeepSeek 搭建企业私有知识库问答系统
开发语言·langchain·c#
java1234_小锋15 小时前
基于LangChain的RAG与Agent智能体开发 - 文档分割器
langchain·rag
六月的可乐15 小时前
AI Agent:从零构建生产级AI智能体脚手架的架构思考
人工智能·ai·架构·langchain·前端框架·node.js·a
Yilena1 天前
带你轻松学习LangChain4j
java·学习·langchain
社恐的下水道蟑螂1 天前
LangChain 进阶实战:从玩具 Demo 到生产级 AI 应用(JS/TS 全栈版)
前端·langchain·openai
_ziva_1 天前
LangServe 实战:5 分钟将 LangChain 链部署为 REST API
langchain
倾颜1 天前
我是怎么把单 Tool Calling 升级成多 Tool Runtime 的
前端·后端·langchain
张正业2 天前
LangChain v1 Agent 执行流程源码解析
langchain