Code Monkey home page Code Monkey logo

report-ai's Introduction

AI-Powered Report Generator

This script is an automated AI-driven report-generating tool designed to help complete assignments in minutes. With its local or cloud-based AI integration, users can produce detailed reports effortlessly.

Prerequisites

To use this tool, ensure you have the following:

  • Python 3 installed on your system.
  • A basic understanding of Python programming.

Setup

AI Setup

If you're looking to use a local LLM (Large Language Model), this section is for you. I have a locally installed LLM, but if you don't, you'll need to modify the AI interaction method to suit your provider.

  • File to update: ./utils/ai.py
  • Method: Replace the prompt method with your AI provider's API call.

Using a Local LLM

If you decide to run the LLM locally, be aware that it may consume significant system resources, so proceed with caution.

Follow these steps to set up a local LLM:

  1. Install Ollama: Download and install Ollama from here.
  2. Choose an LLM Model: Select a model from the Ollama library. I am using the Llama 3.1 model, which is relatively lightweight.
  3. Install the Ollama Python package: This is required to interact with the local LLM model.
  4. Update the Model: If you use a different LLM model, update the reference at ./utils/ai.py:3 with your chosen model.

Project Setup

To set up the project and make the script executable:

  1. Make the setup file executable by running:

    chmod +x setup.sh
  2. Execute the setup script:

    ./setup.sh

This will configure the environment and install any necessary dependencies.

PDF Conversion on Unix-Based Systems

If you're using a Unix-based system and want to convert .docx files to .pdf, you need to run a Gotenberg instance locally via Docker. Here are the steps to do so:

  1. Ensure Docker is installed on your system.
  2. Run the following command to start the Gotenberg container:
    docker run --rm -p 3000:3000 gotenberg/gotenberg:8
  3. The script will send a request to the local Gotenberg instance for converting .docx to .pdf.

Note for macOS Users

Converting to PDF may not work on macOS if there's no active Office instance running. Ensure you have the necessary dependencies installed or consider using the Gotenberg approach if you're on a Unix-like system. Please give it a star if it helps you

report-ai's People

Contributors

aritraop avatar

Stargazers

Aritra Sadhukhan avatar

Watchers

Aritra Sadhukhan 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.