Code Monkey home page Code Monkey logo

langchain_llm_agent's Introduction

  • This app presents two types of agents: 'Tool Calling' and 'ReAct' using LangChain. GPT models from OpenAI and Gemini models from Google are supported, but only the 'ReAct' type of agent is implemented for Gemini models.

    • For GPT models such as 'gpt-4o', your OpenAI API key is needed. You can obtain an API key from https://platform.openai.com/account/api-keys.

    • For Gemini models such as 'gemini-1.5-pro', your Google API key is needed. You can obtain an API key from https://levelup.gitconnected.com/api-tutorial-how-to-use-bing-web-search-api-in-python-4165d5592a7e.

    • For internet searches, obtain your Bing Subscription Key here or Google CSE ID here.

    • Temperature can be set by the user.

    • Voice recognition and Text-To-Speech (TTS) functionalities are supported using OpenAI functions, and therefore are enabled when you use GPT models from OpenAI.

    • Recording of the user's voice is stopped when there is no input for 3 seconds.

    • In addition to the search tools from Bing or Google, ArXiv, Wikipedia, Retrieval (RAG), and pythonREPL are supported. (PythonREPL from LangChain is still experimental, so caution is needed.)

    • Tracing LLM messages is possible using LangSmith if you download the source code and run it on your machine or server. For this, you need a LangChain API key that can be obtained here.

    • When running the code on your machine or server, you can use st.secrets to keep and fetch your API keys as environments variables. For such secrets management, see this page.

Usage

streamlit run LangChain_llm_Agent.py

Exploring the App: A Visual Guide

langchain_llm_agent's People

Contributors

heatherb100 avatar twy80 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.