Skip to main content

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 below directory:

Linux, macOS

home/{username}/.cloudinteractive/ai-insights/config.json

Windows

C:\Users\{username}\.cloudinteractive\ai-insights\config.json

This file contains your API keys and endpoints. Ensure this file is kept secure to prevent unauthorized access. If the configuration file does not exist, the below default configuration file will be created.

{
  "CredentialProvider" : "Json",
  "JsonCredentialProvider" : {
    "ObjectName": "Credentials",
    "OpenAI_Key" : "OpenAI_API_Key",
    "AzureCV_Key": "AzureCV_Key",
    "AzureCV_Endpoint" : "AzureCV_Endpoint"
  },
  "CloudInteractiveCredentialProvider": {
    "Endpoint": "https://secure.icloudint.corp",
    "OpenAI_Key": "key/openai_api",
    "AzureCV_Key": "key/azure_cv_api",
    "AzureCV_Endpoint": "endpoint/azure_cv_api"
  },
  "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

Install package via pip:

pip install cloudinteractive_ai_insights

Alternatively, you can clone this repository and run main.py.

How to run script:

ai-insights {location of source file} {additional argument}
python3 main.py {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

Showcase

Page summarization from the scanned document:

Question transcription from scanned document:

Metadata

Release files for cloudinteractive-ai-insights 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloudinteractive-ai-insights 1.0.5
File Size Uploaded Provenance Actions
cloudinteractive_ai_insights-1.0.5.tar.gz 9.9 kB Without provenance Details for cloudinteractive_ai_insights-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cloudinteractive-ai-insights 1.0.5
File Interpreter ABI Platform Actions
cloudinteractive_ai_insights-1.0.5-py3-none-any.whl Python 3 none any Details for cloudinteractive_ai_insights-1.0.5-py3-none-any.whl

Total release size: 20.6 kB

Release files / cloudinteractive_ai_insights-1.0.5.tar.gz

Download URL cloudinteractive_ai_insights-1.0.5.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7101c973dab13fa59eb3225a0dbf7ff79edd2b5663720c7d2e74d7f24f1be94c
BLAKE2b-256 checksum
How to use checksums
6c8baf3c12cfcc1e908905e81eaf2f09a7d70ea4179c17aaeeb51e3ba9db1884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / cloudinteractive_ai_insights-1.0.5-py3-none-any.whl

Download URL cloudinteractive_ai_insights-1.0.5-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcb70118c72172c1eabb51963e809523339ea3448ae3fc8c69b8150c807ca6f6
BLAKE2b-256 checksum
How to use checksums
9c0449a647ae194068867484083b830f7ceff2d18c23a11d09ecbf6a45b3b501
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for cloudinteractive-ai-insights 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page