智能体开发,实现自定义知识库,基于 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
相关推荐
wshzd2 小时前
LLM之Agent(二十六)| LangChain × LangGraph 1.0 正式发布:AI 智能体迈入“工业化”纪元
人工智能·langchain
mCell3 小时前
Agent ReAct and Loop
langchain·llm·agent
zhangbaolin8 小时前
Langchain中的消息
langchain·messages
小关会打代码16 小时前
LangChain最详细教程之Agents
langchain
钢蛋18 小时前
LangChain 框架架构解析:从核心到应用的完整生态
langchain·agent
钢蛋20 小时前
LangGraph 与 LangChain:关系与定位
langchain·agent
用户9125188677671 天前
一篇文章带你彻底搞懂langchain v1&langgraph v1中的Runtime和ToolRuntime
langchain
再会呀1 天前
[Ai Agent] 05 LangChain Agents 实战:从 ReAct 到带记忆的流式智能体
langchain·github
zhangbaolin2 天前
基于pypdf和chromadb构建向量库
langchain·chroma·分块·向量库·文件加载
Andy_shenzl3 天前
31、LangChain开发框架(八)-- LangChain 数据分析智能体实战
数据挖掘·数据分析·langchain·agent开发