LogoLogo
Github
  • 🚀Getting Started
    • About Jugalbandi Manager
  • Introduction
    • About OpenyAI
    • What is Jugalbandi?
    • Why dive in: How will this playbook help you?
    • Importance and Relevance of Jugalbandi
    • Key Principles powering Jugalbandi
    • Demystifying Jugalbandi: What Jugalbandi isn’t?
  • Breaking Down Jugalbandi's Anatomy
    • Jugalbandi Manager: Your companion for building and managing AI services
    • Jugalbandi’s Key Services
    • Key Features for Enhancing Security and Privacy
  • Building with Jugalbandi
    • Technical Guide
      • explanations
        • JB Manager Architecture
        • Explanations
      • how-tos
        • Local Development
        • Write Your Own Bot
        • How to Guides
      • references
        • Dependencies
        • FSMOutput
        • References
        • Speech and Translation
        • Azure Storage
        • Whatsapp
        • Telegram
        • example-grievance-bot
          • Example Grievance Bots
      • tutorials
        • Tutorials
        • Quickstart
    • Getting Started
    • Local Development / Writing your own bot
    • Dependencies
    • Configuring the FSM to modify flows
    • Cost of building with Jugalbandi
    • Tips and Best Practices / FAQs (Including best practices for creating a knowledge base)
  • Use cases of Jugalbandi
    • Jugalbandi for Access to Legal Information
    • Jugalbandi for Govt. Schemes
    • Accessing Legal Services
    • Jugalbandi for Grievance Redressal
    • Climate Action with Wildlife First
    • Affordable Housing with Bandhu
    • Paralegal Services with Nyaya Mitra
    • UNESCO X Jugalbandi
  • Is Jugalbandi Manager Applicable to your Use case?
    • The versatile applications of Jugalbandi
    • Some other example use cases
  • Possibilities and Future Directions
    • Potential Technological Advancements
    • Jugalbandi Studio: Building with AI has never been more accessible
  • Community and Collaboration
    • Understanding the community-led spirit of our mission
    • Our current collaborators and community
  • Get Involved
    • How can volunteers contribute?
    • How can maintenance of the stack be open-sourced?
    • Technical Support and Contact Information
Powered by GitBook
On this page
  • Introduction
  • Azure Blob Storage
  • Local Storage
  • Configuration
  • Setting up Environment Variables
  • FAQs:

Was this helpful?

Edit on GitHub
Export as PDF
  1. Building with Jugalbandi
  2. Technical Guide
  3. references

Azure Storage

PreviousSpeech and TranslationNextWhatsapp

Last updated 7 months ago

Was this helpful?


JB Manager leverages for the persistent storage of input and output files through which user interacts with the bot. Alternatively, we have the flexibility of switching to a local storage as well.

In this document, we have covered the below-mentioned aspects for utilizing either of the storages effectively:

  • Introduction

    • Preferred Scenario

    • Prerequisites

  • Step-by-step Configuration

Introduction

Azure Blob Storage

  • Preferred Scenario:

    • Scalability Needs: When you need to scale storage capacity quickly and efficiently without worrying about hardware limitations

    • High Availability and Durability: When you require high availability and durability with data redundancy across multiple locations

    • Managed Services: When you want to offload hardware maintenance, updates, and critical issue management to a cloud provider

  • Prerequisites:

    • Azure Storage Account: First, you will need to setup an Azure Storage Account on the portal (refer the )

    • Containers: Next, you will create a container which will be used to store the files

Local Storage

  • Preferred Scenario:

    • High-Speed Access Required: When applications require very low latency and high-speed access to data

    • Complete Data Control: When you need full control over data storage, management, and security (highly confidential files)

  • Prerequisites:

    • Hardware Requirements: Ensure you have sufficient hardware resources, such as hard drives (HDDs) or solid-state drives (SSDs), to meet your storage needs

    • Backup and Redundancy: Implement robust backup and redundancy strategies to protect against data loss due to hardware failures or other issues

Configuration

Setting up Environment Variables

  • To use Azure Blob Storage, you need to update the following lines in .env-dev:

       STORAGE_TYPE=azure
       AZURE_STORAGE_ACCOUNT_URL=<your_storage_account_url>
       AZURE_STORAGE_ACCOUNT_KEY=<your_storage_account_key>
       AZURE_STORAGE_CONTAINER=<your_container_name>
  • To use Local Storage, you need to update the following lines in .env-dev:

      STORAGE_TYPE=local
      PUBLIC_URL_PREFIX=<tunnerl_url>
  • By default, the JB Manager utilizes Local Storage unless specified using the above pointers

FAQs:

  • What is the significance of PUBLIC_URL_PREFIX?

    • To refer and access the inputted files across services in the JB Manager i.e. Language service in case of audio files

  • What are the default storage paths in both cases?

    • In case of Azure Blob Storage, default location is /tmp/jb_files within the defined container

    • While, in case of local storage, default location is /mnt/jb_files

  • I am already utilizing the tmp folder in the Azure Blob storage container in a different process. So is there a way to change the default path?

    • Yes, you could define the custom path in azure_storage.py at jb-lib/lib/file_storage/azure in case of Azure option

        class AzureAsyncStorage(AsyncStorage):
           __client__ = None
           tmp_folder = "/tmp/jb_files" # Update the path here
    • While in case of local storage, update the local_storage.py at jb-lib/lib/file_storage/local/

       class LocalAsyncStorage(AsyncStorage):
          tmp_folder = "/mnt/jb_files" # Update the path here
Azure Blob Storage
link