Code Monkey home page Code Monkey logo

romeo-gpt's Introduction

README.md

Romeo GPT: AI-Powered Document Analysis and Management

Romeo GPT is an AI assistant designed to provide a suite of services which range from document management and analysis to multifaceted AI powered query endpoints. Leveraging FastAPI, Redisearch, and OpenAI's GPT-4, Romeo offers an efficient, powerful, and secure platform for diverse tasks such as document processing, vector-related object management, content analysis, and dynamic search queries.

Project Requirements and Installation

To run this project, you need to have Docker and Docker Compose installed on your machine. If you don't have them already, please follow the installation guides below:

  • Docker installed on your system
  • Python 3.10 or later installed on your system
  • Basic understanding of FastAPI and Redis.

Environment Variables

Create a .env file in the same directory as the docker-compose.yml file with the following variables:

OPENAI_API_KEY=<your_openai_api_key>
REDIS_HOST=<your_redis_host>
REDIS_PORT=<your_redis_port>
REDIS_PASSWORD=<your_redis_password>
GOOGLE_API_KEY=<your_google_api_key>
GOOGLE_CSE_ID=<your_google_cse_id>

To set up the Google Search API keys:

  • First, you need to set up the proper API keys. To do this, create the GOOGLE_API_KEY in the Google Cloud Credential console. You can access the console from this link: Google Cloud Console

  • Then, create a GOOGLE_CSE_ID using the Programmable Search Engine. You can do this by visiting this link: Programmable Search Engine

  • After creating these keys, add them to the .env file.

Deploying the Application Locally

  • Navigate to the project directory containing the docker-compose.yml file.

  • Run the following command to deploy the application:

    docker-compose up --build
    

This command will build the Docker images and start the containers.

Accessing the Application

The application will be available at:

Testing the Application

To test the application, you can use the FastAPI autogenerated documentation by visiting http://localhost:8000/docs. This will provide you with an interactive interface to upload documents and ask questions about the content.

  • Go to the /upload-files/ endpoint and upload your documents. The supported file formats are PDF, DOCX, and TXT.
  • Use the /create-task/ endpoint to ask a question about the uploaded documents. The AI assistant will analyze the most relevant document and provide an answer based on its content.

AI-Powered Google Search Endpoint

Romeo GPT also includes a custom Google Search endpoint at /api/google-search/. This endpoint leverages the power of GPT-4 to conduct informed Google searches based on the provided tasks. This adds another layer of intelligence to your queries, making them more precise and effective.

License

Mozilla Public License Version 2.0

romeo-gpt's People

Contributors

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