Tag: python

  • Top 5 SCA Tools Comparison & Other Options

    Top 5 SCA Tools Comparison &amp Other Options 1. Snyk Open Source Snyk Open Source is a developer-first SCA tool that focuses on identifying and helping developers fix vulnerabilities in open-source dependencies. Key Features: Developer-friendly interface and integration with IDEs. Comprehensive vulnerability database (Snyk Intel). Automatic fix suggestions and remediation advice. License compliance management. Integration Read more

  • Implementing Locally running Mistral Chatbot with RAG

    Locally running Mistral Chatbot with RAG Let’s implement a local running chatbot with Mistral LLM using RAG to retrieve documents from a locally running Vector DB that also contains FAQs. Here’s a breakdown of the steps and the Python code to achieve this: Phase 1: Setting Up the Local Environment Install Dependencies: pip install transformers Read more

  • Using local LLM for Document Extraction

    Non-Cloud LLM for Document Extraction This guide explains how to use a non-cloud version of a pretrained Large Language Model (LLM) for document extraction, focusing on open-source models and local execution. Phase 1: Setting Up Your Local Environment 1. Hardware Requirements Ensure your system meets the following recommendations: CPU/GPU: An NVIDIA GPU with sufficient VRAM Read more

  • Pretrained Models for Document Extraction

    Pretrained Models for Document Extraction Cloud-Based Pretrained Models Google Cloud Document AI: Offers pretrained models for various document types (invoices, receipts, IDs, etc.) for key-value pair, table extraction, and classification. AWS Textract: Provides pretrained models for OCR, key-value pair extraction, and table extraction from documents and images. Azure Form Recognizer (now Document Intelligence): Offers pretrained Read more

  • Automating PDF to JSON Extraction with AI/ML

    Automating PDF to JSON Extraction with AI/ML 1. Understanding the Problem and Defining Key Values for AI/ML When leveraging AI/ML for PDF to JSON extraction, the initial problem definition remains crucial, but with a focus on how AI/ML can address challenges posed by unstructured or highly variable documents. Identify the Key Values: As before, define Read more

  • Matrix Multiplication with PyTorch and CUDA

    Matrix Multiplication with PyTorch and CUDA Matrix Multiplication is a fundamental operation in linear algebra and is crucial in many machine learning algorithms, especially in the layers of neural networks. CUDA significantly accelerates this operation by parallelizing the numerous multiply-accumulate operations involved. Code Example with PyTorch and CUDA import torch # Check if CUDA is Read more

  • Exploring CUDA (Compute Unified Device Architecture)

    Exploring CUDA CUDA is a parallel computing platform and programming model developed by NVIDIA for use with their GPUs. It allows software developers to leverage the massive parallel processing power of NVIDIA GPUs for general-purpose computing tasks, significantly accelerating applications beyond traditional CPU-bound processing. 1. CUDA Architecture: The Hardware Foundation NVIDIA GPUs are designed with Read more

  • Reinforcement Learning Explained with Python Code (Simplified)

    Reinforcement Learning Explained with Python Code (Simplified) To illustrate the core concepts of Reinforcement Learning, we’ll use a very simplified example in Python. Imagine an agent trying to learn the best way to navigate a small grid world to reach a goal. 1. The Environment Our environment will be a 1D grid with a starting Read more

  • Sample Autonomous Threat Identification and Mitigation in AWS (Sample)

    Autonomous Threat Identification and Mitigation in AWS (Sample) This sample outlines a conceptual architecture and key AWS services for building an Autonomous Threat Identification and Mitigation system, focusing on detecting and responding to suspicious network traffic. Conceptual Architecture +—————–+ +—————–+ +———————+ +———————+ +———————+ | Network Traffic | –> | VPC Flow Logs / | –> Read more

  • DynamoDB Index Comparison: GSI vs. LSI

    DynamoDB Index Comparison: GSI vs. LSI DynamoDB Index Comparison: GSI vs. LSI DynamoDB offers two types of secondary indexes to enhance query performance: Global Secondary Indexes (GSIs) and Local Secondary Indexes (LSIs). Here’s a detailed comparison: Key Differences Feature Global Secondary Index (GSI) Local Secondary Index (LSI) Partition and Sort Keys Can have a different Read more