Coder Social home page Coder Social logo

rag-hotel-data's Introduction

iSEArch Hotels Project

iSEArch Hotels is a Retrieval-Augmented Generation (RAG) hotel search chatbot that leverages Qdrant for enhanced semantic search capabilities, integrating OpenAI for natural language understanding and Traversaal.ai API for dynamic content retrieval.

Awards and Recognition ๐Ÿ…

We are proud to announce that our iSEArch Hotels Project achieved 2nd place in a hackathon organized by Traversaal.ai, competing against 44 participants. This recognition highlights our team's dedication to leveraging innovative technology integrations to develop a state-of-the-art hotel chatbot.

Getting Started

Prerequisites

Installation Steps

  1. Set Up Your Environment

    • Clone this repository to your local machine.
    • Create and activate a virtual environment:
      python -m venv venv
      # On macOS/Linux
      source venv/bin/activate
      # On Windows
      .\venv\Scripts\activate
    • Install required Python dependencies:
      pip install -r requirements.txt
  2. Run Qdrant

    • For macOS/Linux, execute:
      ./run_qdrant.sh
    • For Windows, replicate the commands inside run_qdrant.sh in your command prompt.
  3. Environment Configuration

    • Obtain an OpenAI API key and a Traversaal API key.
    • Put these API keys along with any other necessary configurations inside the .env file located in the project's root directory.
  4. Data Preprocessing and Database Initialization

    • Prepare your dataset and initialize the Qdrant database with:
      python preprocess.py
      python store_to_qdrant.py

Launch the Streamlit Application

Launch the Streamlit app to interact with the chatbot:

streamlit run streamlit_app.py

Additional Information

  • To directly interact with the chatbot logic or for debugging, run python rag.py.
  • For an illustrative example of a user-chatbot interaction, refer to example_interaction.txt.

Example Interaction

A detailed example showcasing the chatbot's interaction with a user, including handling various hotel-related queries, is available in example_interaction.txt. This provides insight into the chatbot's capabilities and response quality.

rag-hotel-data's People

Contributors

kelvinc123 avatar

Watchers

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