智能体开发,实现自定义知识库,基于 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
相关推荐
学Linux的语莫10 小时前
LangChain Prompts 提示词模板
数据库·人工智能·langchain
爱学习的小白柏10 小时前
同城双活的核心不是双活,是逼着数据别出机房
大数据·人工智能·算法·langchain·ai编程
hyunbar1 天前
LangChain 实战:什么是MiddleWare(中间件)?
中间件·langchain
王国强20091 天前
LangChain 1.0 之后:从 Agent 框架走向 AI 应用运行时
langchain
XGeFei1 天前
【LangChain—Advanced usage—Guardrails】
langchain
Darling噜啦啦1 天前
LangGraph 实战:从 StateGraph 基础到多 Agent 编排,分支循环中断恢复全掌握
langchain·agent
李洱2 天前
LangChain 基础知识
langchain
2601_962297482 天前
基于LangChain+LLM大模型+机器学习的恶意域名(流量)智能检测系统
机器学习·langchain·llm·恶意域名·流量检测
XGeFei2 天前
【LangChain—Frontend—Overview】
langchain
陈皮糖..2 天前
从零搭建一个简易 AI 运维问答机器人(RAG + LangChain + Streamlit)
运维·人工智能·ai·langchain·机器人