Coder Social home page Coder Social logo

munenecarl / langchain_demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brainlid/langchain_demo

0.0 0.0 0.0 876 KB

Demo web project using the Elixir LangChain library

License: Other

JavaScript 3.10% Elixir 90.18% CSS 0.09% HTML 6.63%

langchain_demo's Introduction

Logo with chat chain links Elixir LangChain Demo App

This project is a demonstration example using the Elixir LangChain library and Phoenix LiveView.

To start your LangChain Demo project:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4400 from your browser.

Conversations

Visit the Conversations page for having a conversation with ChatGPT.

You can cancel a request in flight, delete a message, edit a message, and resubmit the conversation.

Features:

  • Conversations are written to a SQLite database in the project directory.
  • Conversations are performed using the Elixir LangChain library.
  • Uses Phoenix LiveView Async Operations.
  • Use ctrl+enter to submit a message.

Example GIF showing usage with editing and resubmitting

Personal Fitness AI Agent

An Agent can be described as:

Agent: a language model is used as a reasoning engine to determine which actions to take and in which order.

Visit the Personal Fitness Trainer page to meet with your own Personal AI Fitness Trainer.

Suggestion: Ask "how do we start?" to get started and go from there!

For an overview and to see it in action, check out the video:

Youtube demo video

There is a companion blog post about it as well that gives an overview of how it works.

You can create a weekly workout plan to help you reach your goals. Information about you is stored in a local SQLite database. Report on your workouts to your assistant and they will log them for you. The assistant can access your stored information and historical workout logs to answer questions and help you on your personal fitness journey! ๐Ÿ’ช

Features:

  • Context around how the AI is configured is hidden from the user.
  • Data about the user is written in a structured format by the AI into a local SQLite database.
  • Historical fitness log entries are stored and fetched from the local database.
  • Provides a simple but powerful working example of how to create an AI agent in Elixir that integrates with your app.

langchain_demo's People

Contributors

brainlid 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.