智能体开发,实现自定义知识库,基于 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
相关推荐
用户3884567199541 小时前
LangChain 源码解析:HumanInTheLoopMiddleware 如何实现 Agent 人机协同
langchain
l1258652 小时前
# RAG向量数据库优化实战:HNSW索引调参与生产级性能设计
数据库·python·mysql·langchain
l1258654 小时前
# RAG噪声知识库治理:一致性与可信度的四层防线设计
数据库·人工智能·python·自然语言处理·langchain
二进制_博客4 小时前
rag面试题之rag 系统如何解决 llm 的幻觉问题
langchain·rag
jyOverQ6 小时前
LangGraph 流式执行详解:stream、astream 与 stream_mode 怎么选?
python·langchain
l1258658 小时前
# RAG低延迟架构设计:从5秒到500ms的优化全链路
数据库·人工智能·python·langchain
睡觉时不困4428 小时前
17.LangChain 1.0+ 第五篇:Tools 工具——让大模型从认识世界到改变世界
langchain
为你学会写情书8 小时前
NestJS + LangChain 集成指南:从库封装到手动构建
langchain
草莓熊Lotso9 小时前
【Linux网络加餐】手动部署:SSH 与 Web 服务实战 + 底层原理全解析
linux·运维·网络·人工智能·python·langchain·ssh
65岁退休Coder1 天前
LangChain v1.3.4 笔记 - 08 MCP & 相关概念
后端·python·langchain