Coder Social home page Coder Social logo

country-compass-ai's Introduction

Multi-Modal Chatbot Powered by LangChain Agents, OpenAI's Function Calling, and Streamlit

Solution

The multi-modal chatbot I crafted is backed by an agent that uses three tools:

  • REST Countries API Chain: enables retrieving information on countries, invoking Rest countries API
  • DALL·E 3 Image Generator: Generates an image of countries based on the country name
  • Google Search Tool: Useful for fetching information from the web

Getting Started

Clone the repository, set up the virtual environment, and install the required packages

  1. git clone [email protected]:nirbar1985/country-compass-ai.git

  2. ( In case you have python version 3.11.4 installed in pyenv)

    pyenv local 3.11.4
  3. Install dependencies

    poetry install
  4. Enter virtual env by:

    poetry shell

Store your API keys

  • Create .env file
  • Place your OPENAI_API_KEY into .env file
  • Place your SERPAPI_API_KEY into .env file

Running the Multi-Modal ChatBot

Kick of the chatbot by running:

streamlit run chatbot_ui.py

Pose queries for instance -

  • Create images of countries

    Screenshot 2024-02-10 at 18 16 30

  • Retrieve information on countries

    Screenshot 2024-02-10 at 0 44 48
  • Get current data

Screenshot 2024-02-09 at 23 02 00

License

Distributed under the MIT License. See LICENSE.txt for more information.

country-compass-ai's People

Contributors

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