Skip to main content

Collection of AI tools designed to assist with your assignments and projects.

Project description

cloudinteractive-ai-insights

This project is a collection of AI tools designed to assist with your assignments and projects.

Use Microsoft Azure Cognitive Service and OpenAI's ChatGPT API to help you focus on what truly matters.

Table of Contents

Responsible use of Generative AI

책임감 있는 AI 사용이란 무엇입니까? (국문)

WARNING: This project should only be used as an auxiliary tool. Generative AI is not a solution provider for your assignment. Relying on this tool to fully complete your assignments is a clear act of cheating.

Please agree to the responsible use of Generative AI before utilizing this tool.

Features

  • Question Transcription: Easily transfer questions from question papers directly into a Jupyter Notebook.
  • Page Summarization: Get concise summaries of specific page contents.
  • Code Extraction: Extract code from images containing sample code effortlessly.
  • Custom Prompt: Use ChatGPT to process content from images or document pages as you need.

This project can easily integrate into Visual Studio Code via task.json.

Requirements

This project uses Microsoft Azure Cognitive Services and OpenAI ChatGPT.

Note: Usage might incur charges.

You will need:

  • OpenAI API Key
  • Microsoft Azure Cognitive Services API Endpoint
  • Microsoft Azure Cognitive Services API Key

Configuration

config.json file must be present in the program directory. This file contains your API keys and endpoints. Ensure this file is kept secure to prevent unauthorized access.

{
  "CredentialProvider" : "Json",
  "JsonCredentialProvider" : {
    "ObjectName": "Credentials",
    "OpenAI_Key" : "OpenAI_API_Key",
    "AzureCV_Key": "AzureCV_Key",
    "AzureCV_Endpoint" : "AzureCV_Endpoint"
  },
  "CloudInteractiveCredentialProvider": {
    "Endpoint": "https://secure.cloudint.corp",
    "OpenAI_Key": "key/openai",
    "AzureCV_Key": "key/azure_cv",
    "AzureCV_Endpoint": "endpoint/azure_cv"
  },
  "Credentials" : {
    "OpenAI_API_Key": "YOUR_OPENAI_KEY",
    "AzureCV_Key": "YOUR_AZURECV_KEY",
    "AzureCV_Endpoint": "YOUR_AZURECV_ENDPOINT"
  }
}
  • CredentialProvider: Json or CloudInteractive.

    Use Json if fetching credentials directly from this configuration file. If fetching credentials from CloudInteractive Credential API, use CloudInteractive.

  • CloudInteractiveCredentialProvider:

    Note: Not for Public use, only works within CloudInteractive Corporate Intranet.

    Defines CloudInteractive Credential API endpoints and options. For more details, please refer to https://docs.cloudint.corp/credential.

  • Credentials:

    Enter your Microsoft Azure Cognitive Services API Endpoint and Key, OpenAI API Key. JsonCredentialProvider will fetch credentials from here.

How to Use

Clone this repository and execute the main.py with the required arguments or you can install package from PyPI and run.

Install package via pip:

pip install cloudinteractive_ai_insights

How to run script:

python3 main.py {location of source file} {additional argument}
ai-insights {location of source file} {additional argument}

Additional Arguments:

  • --task, -t : Specifies the task. Options: QuestionTranscipt, CodeExtrect, PageSummary, CustomPrompt
  • --page, -p : Specifies pages to import from the source document.
  • --out, -o : Specifies out file path.
  • --prompt : Specifies custom prompt for the CustomPrompt task.
  • --verbose : Enable verbose status messages.
  • --no-warnings : Suppress any warnings.

Example:

ai-insights "F:\MyDocument\PythonBook.pdf" --task QuestionTranscript --page 217 218 --out "F:\Paper\Python_Chapter_4.ipynb" --no-warnings

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudinteractive_ai_insights-1.0.4.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file cloudinteractive_ai_insights-1.0.4.tar.gz.

File metadata

File hashes

Hashes for cloudinteractive_ai_insights-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d42caf80b8c1a8a8530be0579e4ca0f43108ceffe8b3ba34c8a340d5e85f660a
MD5 51582cba29797c34c9ace5b1c17fa1b7
BLAKE2b-256 5dda2747a6fb06523e7410a282d6def789cdc28cc9d716a6925d9499e5585091

See more details on using hashes here.

File details

Details for the file cloudinteractive_ai_insights-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudinteractive_ai_insights-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54cfc8c70d97654a62d3f629c65d688bceaa6a5fb492b85e6ed1298a67c59bb1
MD5 8111f50dc1974d835d01dc8ba36a7c2c
BLAKE2b-256 f8a71e47d211292ea8e6887ae765da70b205682a9ad106de632ccb33b43b884a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page