Code Monkey home page Code Monkey logo

langchain-agent-collection's Introduction

langchain-agent-collection

This repository is aimed at testing a few agents from langchain, with different use cases.

Installation

Install dependencies with pnpm i. Make sure ts-node is installed globally. Add environment variables as prescribed by each agent in .env.

Run the agent script you want to try ts-node agent-rag-chat-tools-gpt4

Templates

Here's the list of templates currenlty available. Feel free to open up a PR to add one.

agent-rag-chat-tools-gpt4

Conversational agent with document retriever, and web tool. Using OpenAI's GPT4 model.

See code here. Run with ts-node agent-rag-chat-tools-gpt4

agent-rag-chat-tools-claude

Conversational agent with document retriever, and web tool. Using Anthropic's Claude 2.1 model.

See code here. Run with ts-node agent-rag-chat-tools-claude

agent-rag-chat-tools-gpt4-streaming

Conversational agent with document retriever, and web tool. Using OpenAI's GPT4 model. The output can be streamed to the user.

See code here. Run with ts-node agent-rag-chat-tools-gpt4-streaming

Disclaimer

Running those scripts will incur service fees from Anthropic/OpenAI. Results are not guaranteed, this repo should be used only as a list of examples that can be adapted to specific use cases.

Sources

Most of the code comes and is based from the langchain documentation. Make sure to check it out.

langchain-agent-collection's People

Contributors

antoinewg avatar

Stargazers

Renato Perez avatar Dave Linabury avatar luocacy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.