智能体开发,实现自定义知识库,基于 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
相关推荐
喵叔哟23 分钟前
Week 3 --Day 2:LangGraph 进阶
python·langchain
OceanBase数据库官方博客1 小时前
借助OceanBase与LangChain,实现Agent快速投入生产的系统方案
langchain·oceanbase
颜酱1 小时前
LangChain上手 MCP:从用别人工具到自己写工具
langchain
颜酱14 小时前
LangChain使用RAG 入门:让大模型读懂你的私有文档
python·langchain
质造者17 小时前
LangChain + Ollama + Tavily 实现旅游问答系统
linux·人工智能·python·langchain·rag
Solis程序员17 小时前
LangChain从入门到精通(1)
langchain
leeyi17 小时前
Workflow 编排:字段映射、数据流分离
langchain·workflow·graphql
倾颜17 小时前
从手写 Runner 到 LangGraph:受控 Agent 接入 LangGraph
前端·后端·langchain
wuhen_n18 小时前
从零到一!前端搭建本地轻量化 RAG 问答系统
前端·langchain·ai编程
Solis程序员21 小时前
LangChain从入门到精通(2)
langchain