智能体开发,实现自定义知识库,基于 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
相关推荐
YUS云生2 小时前
大模型学习·第41天:LangChain进阶——提示词模板与Chain链式调用
学习·langchain·c#
颜酱1 天前
13 | 使用 LangChain 生成 SQL
人工智能·python·langchain
小猪咪piggy1 天前
【AI 赋能测试】Langchain 框架的使用
人工智能·chrome·langchain
艾斯特_1 天前
langGraph
人工智能·python·langchain
未知违规用户1 天前
大模型项目:知识库构建工具与 LangChain 操作ChromaDB
人工智能·python·langchain·numpy
chaors2 天前
DeepResearchSystem 0x04:MAS 进阶
langchain·agent·ai编程
_Jimmy_2 天前
Agent 溯源精度提升方案
人工智能·python·langchain
颜酱2 天前
09 | 重构项目结构
人工智能·python·langchain
颜酱2 天前
08 | 把维度值同步到 Elasticsearch(生成阶段)
人工智能·python·langchain
我是大卫2 天前
图解LangChain:一张架构图理清大模型应用框架核心逻辑
langchain