Skip to content

irvingvjuarez/react-agentic-rag-app

Repository files navigation

Agentic React App with ReactJS and LlamaIndex

Welcome to the Agentic React App project! This repository provides the code and instructions for creating a dynamic, intelligent web application using ReactJS and the LlamaIndex LLM framework. The goal of this project is to demonstrate how to integrate a large language model (LLM) into a React application to create interactive and agentic user experiences.

Mock of the UI for the Agentic React App

image

Introduction

This project showcases the integration of ReactJS with the LlamaIndex framework to build a responsive and interactive web application. LlamaIndex leverages the power of large language models to provide intelligent responses and dynamic content generation, enhancing the overall user experience.

Step-by-step blogpost

Here is the blogpost if you want to follow the step-by-step implementation of the code

https://medium.com/@irvingvjuarez/unlock-the-potential-elevate-your-rag-apps-with-react-e4d439430866

Features

  • Interactive User Interface: Built with ReactJS for a responsive and dynamic user experience.
  • Intelligent Responses: Utilizes LlamaIndex to generate context-aware and meaningful responses.
  • Modular and Scalable: Designed with modularity in mind, allowing easy extension and customization.
  • Easy Setup: Simple installation and configuration process to get started quickly.

Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/irvingvjuarez/react-agentic-rag-app.git
    cd react-agentic-rag-app
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

    Your app should now be running on http://localhost:3000.

Usage

Once the application is running, you can interact with it by entering queries in the input field. The LlamaIndex framework processes the input and generates intelligent responses displayed in the application.

Configuration

You can customize various aspects of the application by modifying the configuration files and components:

  • API Configuration: Update the .env file with your LlamaIndex API key and other necessary configurations.
  • Components: Modify the React components in the src directory to customize the UI and behavior of the application.
  • Styling: Update the CSS files in the src directory to change the look and feel of the application.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you have any questions, suggestions, or feedback, feel free to reach out:


Feel free to customize this README further to better match your project's specifics and your preferences!

About

React Agentic RAG app using LlamaIndex and OpenAI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published