Giter Site home page Giter Site logo

chatgpt-driven-shopping-assistant's Introduction

ChatGPT-Driven Shopping Assistant

This is an application based on Langchain and powered by large language models (LLMs). It integrates state-of-the-art prompting tricks and allows LLMs to freely call external APIs, ultimately providing users with online shopping links.

show

Features

  • Theory of Mind: LLMs strive to infer users' intentions as accurately as possible, enabling the handling of ambiguous user responses.
  • Smart Retrieval of Tools: Utilizes a FAISS-based retriever to select relevant tools based on the similarity between a user's query and the tools' descriptions.
  • ReAct Prompting: LLMs are employed to generate both reasoning traces and task-specific actions (Thought/ Observation/ Action) in an interleaved fashion.
  • In-Context Memory: LLMs maintain conversation history, ensuring consistency in dialogues and facilitating some mathematical operations.
  • Interactive Web Application: Designed using the Gradio library, this feature offers users a user-friendly interface to engage with the agent.
  • Visualized Intermediate Steps: Allows users to observe LLMs' complete reasoning process, minimizing uncertainties regarding potential hallucinations.

Setup

  1. Clone this repository to your local machine.
  2. Obtain API keys for OpenAI and RapidAPI. Add these keys to a configuration file named keys.txt in the root directory of the project.
  3. Install the required Python libraries by running pip install -r requirements.txt in your terminal.
  4. Execute python app.py to launch the web application.

References

S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, "ReAct: Synergizing Reasoning and Acting in Language Models,"

chatgpt-driven-shopping-assistant's People

Stargazers

 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.