百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

langchain-js-tutorial

> AI 编程
开源

LangChain 初学者为JavaScript/TypeScript的教程

191 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

LangChain 初学者为JavaScript/TypeScript的教程

[!IMPORTANT] This project is no longer actively maintained and is kept here for reference. Please do not expect responses to new issues or pull requests.

Langchain Tutorial For Typescript and Javascript Developers

  • LangChain typescript tutorial video
  • The visual explanation diagram is in the visual-image folder.

What is Langchain?

In simple terms, langchain is a framework and library of useful templates and tools that make it easier to build large language model applications that use custom data and external tools.

Essentially, langchain makes it easier to build chatbots for your own data and "personal assistant" bots that respond to natural language.

Quick install

After you clone the repo, follow these instructions:

  1. Install packages npm install

  2. Add OpenAI, Pinecone and SerpApi keys as environment variables

  • create a .env file in the root of the folder
  • copy the environmental variables from .env.example into .env and replace with the keys from respective websites
    • openAI.
    • serpAPI
    • Pinecone

Usage

To run a specific example in the repo, simply run the bash script below and replace "examplePath" with the relative path from src/index.ts to the example file:

npm run start {examplePath}

For example:

npm run start ./prompts/basic.ts

Resources

  • LangChainDocs
  • PineconeDocs

Credit

This repository heavily borrows from:

  • LangchainJS - official langchain library

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptgpt3javascriptlangchainllm

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.