Catalog PyPI
PACKAGE EXPLORERView in registry

aifbin-pro

PyPI

Professional AI memory management with semantic search. Full-featured CLI for AIF-BIN files.

aiaif-binembeddingsmemoryragsemantic-searchvector-database
Versions collected1
Direct dependencies9From release 1.0.0
Last observed21 Oct, 10:40 UTC

README

Version 1.0.0 documentation

AIF-BIN Pro CLI

Professional command-line toolkit for semantic document memory.

CI Patent Pending License: MIT Python 3.9+


What is AIF-BIN Pro?

AIF-BIN Pro is a command-line tool for converting documents into searchable AI memory files. It generates real vector embeddings for semantic search — find content by meaning, not just keywords.

Key Features:

  • Semantic Search — Query your documents by meaning
  • Real Embeddings — 384/768-dimension vectors with 5 model options
  • Batch Processing — Parallel conversion of entire directories
  • Watch Mode — Auto-sync on file changes
  • AI Extraction — Use Claude, GPT-4, Gemini, or Ollama for intelligent parsing
  • Multiple Exports — JSON, CSV, Markdown, HTML

Installation

Clone the Repository

git clone https://github.com/Terronex-dev/aifbin-pro.git
cd aifbin-pro

Using the Wrapper Script

For convenience, a wrapper script is provided. Make it executable first:

chmod +x aifbin-pro

Now you can run the CLI directly:

# Verify installation
./aifbin-pro --help

The examples below will use this wrapper. If you prefer, you can still run python3 cli/aifbin_pro.py or python cli/aifbin_pro.py.

# Create virtual environment
python3 -m venv .venv

# Activate it
source .venv/bin/activate      # Linux/macOS/WSL
.venv\Scripts\activate         # Windows PowerShell

# Install dependencies
pip install -r requirements.txt

# Run
python cli/aifbin_pro.py --help

Quick Start

A sample.md file is included for testing.

# Convert the sample file to AIF-BIN with embeddings
./aifbin-pro migrate sample.md -o output/

# Search your memories semantically
./aifbin-pro search "project decisions" -d output/

# View file info
./aifbin-pro info output/sample.aif-bin

# Extract original content
./aifbin-pro extract output/sample.aif-bin

Commands

CommandDescription
migrateConvert files to AIF-BIN (v2 binary format) with embeddings
searchSemantic search across your memory files
infoShow file metadata, chunks, and model info
extractRecover original content from AIF-BIN
exportExport to JSON, CSV, Markdown, or HTML
watchAuto-sync directory on file changes
diffCompare two AIF-BIN files
modelsList available embedding models
providersList AI providers for intelligent extraction
ingestConvert any file with AI extraction
configConfigure AI provider API keys

Command Examples

Migrate (Convert Files)

# Single file
./aifbin-pro migrate document.md -o output/

# Entire directory
./aifbin-pro migrate notes/ -o output/

# Recursive with parallel processing
./aifbin-pro migrate notes/ -o output/ -r -p

# Use a different embedding model
./aifbin-pro migrate notes/ -o output/ -m bge-small

Search (Semantic Query)

# Basic search
./aifbin-pro search "budget decisions" -d output/

# Get more results
./aifbin-pro search "project timeline" -d output/ -k 10

# Filter by date
./aifbin-pro search "meeting notes" -d output/ --after 2026-01-01

Watch (Auto-Sync)

# Watch a directory and auto-convert changes
./aifbin-pro watch notes/ -o output/

# Custom check interval (seconds)
./aifbin-pro watch notes/ -o output/ -i 10

Export (Convert to Other Formats)

./aifbin-pro export file.aif-bin -o output.json -f json
./aifbin-pro export file.aif-bin -o output.csv -f csv
./aifbin-pro export file.aif-bin -o output.md -f markdown
./aifbin-pro export file.aif-bin -o output.html -f html

Ingest (AI-Powered Extraction)

# Configure an AI provider first
./aifbin-pro config --provider anthropic --api-key sk-ant-...

# Ingest files with AI extraction
./aifbin-pro ingest documents/ -o output/ -p anthropic

# Use local Ollama (no API key needed)
./aifbin-pro ingest documents/ -o output/ -p ollama

Embedding Models

ModelDimensionsSpeedDescription
minilm384FastGood quality (default)
mpnet768SlowHigher quality
bge-small384FastOptimized for retrieval
bge-base768SlowBest quality retrieval
e5-small384FastMicrosoft E5

List available models:

./aifbin-pro models

AI Providers (for ingest command)

ProviderAPI Key RequiredBest For
anthropicYesDocuments, analysis
openaiYesGeneral purpose
geminiYesImages, PDFs (vision)
ollamaNo (local)Privacy, offline use
noneNoBasic text extraction

Configure providers:

# Set API key
./aifbin-pro config --provider anthropic --api-key sk-ant-...

# Set default provider
./aifbin-pro config --default anthropic

# View current config
./aifbin-pro config

List available providers:

./aifbin-pro providers

File Format

AIF-BIN v2 is a compact binary format with:

  • MessagePack encoding (~50% smaller than JSON)
  • Fixed-offset headers for fast parsing
  • Embedded CRC64 checksums
  • Vector embeddings for semantic search
  • Original content preservation
[Header: 64 bytes]
  Magic: "AIFBIN\x00\x01"
  Version, Offsets, Size

[Metadata Section]
  MessagePack blob

[Original Raw Section]
  Preserved source file

[Content Chunks]
  Typed chunks with embeddings

[Footer]
  Index + Checksum

Troubleshooting

error: externally-managed-environment (Debian/Ubuntu/WSL)

# Option 1: Use --break-system-packages
pip3 install -r requirements.txt --break-system-packages

# Option 2: Use a virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

ModuleNotFoundError: No module named 'sentence_transformers'

You may need to install the project's dependencies.

pip install -r requirements.txt

Ollama connection refused

Make sure Ollama is running:

# Start Ollama server
ollama serve

# Pull a model if needed
ollama pull llama3.1:8b

ProjectDescription
AIF-BIN LiteFree CLI (format conversion only, no embeddings)

Privacy & Security

  • Local-first: All processing happens on your machine
  • No telemetry: We don't collect usage data
  • BYO API keys: Use your own AI provider credentials
  • Open format: AIF-BIN files are portable, no vendor lock-in

  • AIF-BIN™ is a trademark of Terronex.dev
  • Licensed under the MIT License (see LICENSE)
  • See NOTICE for patent and trademark information


© 2026 Terronex.dev. All rights reserved.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.013 Feb 20269

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
terronex-dev/aifbin-pro

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1eb6d8c66102c6cd47a7262f4eb048064f7cdfec1abccd496535b48a0bd04354