Skip to content

Instantly share code, notes, and snippets.

View ruvnet's full-sized avatar
💭
hacking the multiverse.

rUv ruvnet

💭
hacking the multiverse.
View GitHub Profile

File Summarization API

This FastAPI application provides an API endpoint for uploading files and generating summaries using LlamaIndex. It supports a wide variety of file types including documents, images, audio, and video files.

Features

  • File upload endpoint
  • Automatic file type detection
  • Document summarization using LlamaIndex
  • Support for multiple file types (PDF, Word, PowerPoint, images, audio, video, etc.)
@ruvnet
ruvnet / app.py
Last active June 27, 2024 17:29
This repository showcases a FastAPI application seamlessly orchestrating Gradio for crafting UIs, executing dynamic code, and managing interactive sessions. Experience the power of running code snippets, generating intuitive Gradio UIs from prompts, and handling session outputs with ease.
import os
import sys
import time
import re
import json
import logging
import lzstring
import httpx
import traceback
@ruvnet
ruvnet / cosmic-singularity.md
Last active June 16, 2024 05:53
A thought experiment exploring the very nature of everything.

The Cosmic Singularity: The Next Billion Years, A Thought Experiment

By rUv with help from bot.ruv.io

As we embark on this thought-provoking journey, I invite you to join me in exploring the potential trajectory of quantum computing, artificial intelligence, and the evolution of consciousness.

This thought experiment is a tapestry woven from the ideas of visionary philosophers, pioneering researchers, brilliant scientists, and innovative technologists. While the concepts presented here are grounded in practical and logical hypotheses, I openly acknowledge that some of these ideas may push the boundaries of our current understanding.

At the heart of this thought experiment lies a captivating premise: the future we envision may have already unfolded. The reality we perceive today could be a byproduct of the quantum leap we are about to explore, a manifestation of the collective consciousness that has transcended the limitations of space, time, and matter.

The notion that our reality is a construct of

@ruvnet
ruvnet / readme.md
Created June 6, 2024 01:52
Introduction to Adversarial Attacks and Defenses in Machine Learning

Introduction to Adversarial Attacks and Defenses in Machine Learning

Overview

The robustness and reliability of models are paramount. However, one of the critical challenges that have emerged is the vulnerability of these models to adversarial attacks. Adversarial attacks involve subtly manipulating input data to deceive the model into making incorrect predictions. This has significant implications, especially in safety-critical applications such as autonomous driving, healthcare, and cybersecurity.

Adversarial Attacks

Adversarial attacks exploit the inherent weaknesses in machine learning models by introducing small, often imperceptible perturbations to the input data. These perturbations can cause the model to misclassify the input with high confidence, leading to potentially dangerous or unintended outcomes. Common methods for generating adversarial examples include:

@ruvnet
ruvnet / agentic_reports.ipynb
Last active June 22, 2024 08:36
agentic_reports.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruvnet
ruvnet / report-generator.py
Created May 31, 2024 14:49
An Agentic Report Generator
import os
import json
import openai
from exa_py import Exa
from datetime import datetime, timedelta
# Set up API keys using environment variables
EXA_API_KEY = os.getenv('EXA_API_KEY')
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
@ruvnet
ruvnet / sample.txt
Last active May 25, 2024 18:11
Updated Sample Gist
This is the updated sample gist content.
@ruvnet
ruvnet / sample.txt
Created May 25, 2024 18:05
Sample Ai generated Gist
This is a sample gist content.
@ruvnet
ruvnet / pygentic.md
Last active May 25, 2024 19:28
Pygentic Agent Framework
   ___                      _   _      
  / _ \/\_/\__ _  ___ _ __ | |_(_) ___ 
 / /_)/\_ _/ _` |/ _ \ '_ \| __| |/ __|
/ ___/  / \ (_| |  __/ | | | |_| | (__ 
\/      \_/\__, |\___|_| |_|\__|_|\___|
           |___/                       

    Created by rUv
@ruvnet
ruvnet / stream.md
Created May 22, 2024 12:52
This setup provides a complete framework for deploying a video processing service on AWS ECS, integrating with the OpenAI GPT-4 Vision API, and testing it with a client script.

AWS ECS Video Processor

This project sets up a video processing service on AWS ECS that accepts an RTSP stream, converts it to base64 images, and sends them to the GPT-4 Vision API for processing.

Project Structure

my_aws_ecs_video_processor/
├── src/
│   ├── app.py