Skip to main content

A comprehensive AI-powered tools suite for file management, citation extraction, content idealization, and document generation.

Project description

Herd AI

PyPI Version License

A comprehensive document and code management toolkit powered by AI. Herd AI leverages Large Language Models for intelligent file organization, content extraction, and document analysis.

Features

  • Smart File Renaming: Automatically generate meaningful filenames based on content
  • Code Snippet Extraction: Extract and organize important code segments
  • Citation Management: Extract and format citations from research documents
  • Document Idealization: Create canonical, cleaned versions of text content
  • Image Processing: Generate alt text and description for image files
  • Documentation Generation: Create comprehensive documentation for code repositories
  • Deduplication: Find and manage duplicate files efficiently
  • Interactive CLI: User-friendly interface with intuitive navigation and directory switching

Installation

Install from PyPI:

pip install herd-ai

Quick Start

# Process files in a directory (CLI)
herd --dir ~/Documents/project --rename --recursive

# Extract code snippets 
herd --dir ~/code/project --snippets

# Generate documentation
herd --dir ~/code/project --docs

# Process images
herd --dir ~/images --images

# Launch interactive CLI
herd

# Use in your Python code
from pathlib import Path
from herd_ai.rename import process_renames
from herd_ai.snippets import process_snippets

# Smart file renaming
process_renames(Path("~/Documents/project"), recursive=True, provider="ollama")

# Extract code snippets
process_snippets(Path("~/code/project"), recursive=True, provider="ollama")

AI Provider Support

Herd AI supports multiple AI providers:

  • Ollama (default): Uses local models like Llama, Gemma, Mistral
  • X.AI: Uses X.AI/Grok models for advanced processing
  • Google Gemini: Uses Google's Gemini API for text and image processing
  • OpenAI: Uses OpenAI's API for text and image processing
  • Cohere: Uses Cohere's API for text processing

Select your provider with the --provider flag:

herd --dir ~/Documents --rename --provider openai

Or in code:

process_renames(Path("~/Documents"), provider="openai")

Interactive CLI

Herd features an intuitive interactive CLI with the following keyboard shortcuts:

  • Numeric keys (1-9): Select menu options
  • s: Access settings menu (change provider, set API keys)
  • d: Change target directory without restarting
  • q: Quit the current menu or application
  • Ctrl+C: Go back one menu level (or exit if at main menu)

Launch the interactive CLI:

herd

Documentation

For full documentation, visit the Herd AI documentation.

Development

See DEVELOPMENT.md for information on contributing to Herd AI.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

herd_ai-0.2.0.tar.gz (133.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herd_ai-0.2.0-py3-none-any.whl (112.7 kB view details)

Uploaded Python 3

File details

Details for the file herd_ai-0.2.0.tar.gz.

File metadata

  • Download URL: herd_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 133.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for herd_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21c2ab4798fa161c4f1ea7b28abc1b3efdcf14f355cdc9907256825f0ff652df
MD5 794f8087f2b456376376dc5f88bd9644
BLAKE2b-256 14ff87cace4b6f640587ac5462bf918e93098d4b1462d12f1ebb4f2713084af7

See more details on using hashes here.

File details

Details for the file herd_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: herd_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 112.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for herd_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dfd54a6aefb126c8ab3fb8ae43dc1b044cc90576c1ce45ce83e2fa59cef714e
MD5 7c4591d7e3fa820dfa0136af1a050179
BLAKE2b-256 bf7e5bb37245a8d9420a706a86f994f133ea4d5b3df1c1e7bdb266c896161bcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page