智能体开发,实现自定义知识库,基于 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
相关推荐
树獭叔叔8 小时前
LangGraph Memory 机制
后端·langchain·aigc
Jack___Xue9 小时前
LangChain实战快速入门笔记(五)--LangChain使用之Tools
笔记·microsoft·langchain
爱写Bug的小孙12 小时前
Agent 和ReAct Agent区别
ai·langchain·agent·springai
爬点儿啥1 天前
[Ai Agent] 10 MCP基础:快速编写你自己的MCP服务器(Server)
人工智能·ai·langchain·agent·transport·mcp
猫头虎1 天前
又又又双叒叕一款AI IDE发布,国内第五款国产AI IDE Qoder来了
ide·人工智能·langchain·prompt·aigc·intellij-idea·ai编程
树獭叔叔1 天前
Langgraph: Human-in-the-Loop 实现机制
后端·langchain·aigc
JH灰色1 天前
【大模型】-LangChain--stream流式同步异步
服务器·前端·langchain
JH灰色1 天前
【大模型】-LangChain--Agent
windows·microsoft·langchain
JH灰色1 天前
【大模型】-LangChain多模态输入和自定义输出
java·前端·langchain
JH灰色1 天前
【大模型】-LangChain自定义工具调用
数据库·langchain