README.md · GitHub
Skip to content

Instantly share code, notes, and snippets.

@ruvnet
Last active March 3, 2026 11:54
Show Gist options
  • Select an option

  • Save ruvnet/6a42f511a9eca74729986e70aa695bc6 to your computer and use it in GitHub Desktop.

Select an option

Save ruvnet/6a42f511a9eca74729986e70aa695bc6 to your computer and use it in GitHub Desktop.

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.)
  • JSON response with file information and summaries

Requirements

  • Python 3.7+
  • FastAPI
  • LlamaIndex
  • uvicorn

Configure Keys

export OPENAI_API_KEY="your_key"

Run

python main.py

Additional

For Audio transcription pip install git+https://github.com/openai/whisper.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment