Catalog PyPI
Back to packageRELEASE DETAILS

1.0.0

PyPI

aifbin-pro

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

aiaif-binembeddingsmemoryragsemantic-searchvector-database
Published13 Feb 2026
Direct dependencies9
Transitive dependenciesNot calculated

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.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
sentence-transformers
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
sentence-transformers>=2.2.0runtime
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
numpy>=1.21.0runtime
msgpack
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
msgpack>=1.0.0runtime
huggingface_hub
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
huggingface_hub>=0.20.0runtime
anthropic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
anthropic>=0.18.0runtime
openai
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
openai>=1.0.0runtime
google-generativeai
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
google-generativeai>=0.3.0runtime
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
requests>=2.28.0runtime
Pillow
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
Pillow>=9.0.0runtime

Distribution files

2 collected
aifbin_pro-1.0.0-py3-none-any.whl

bdist_wheel · 21.6 KB · Python py3

Source file
aifbin_pro-1.0.0.tar.gz

sdist · 20.84 KB · Python source

Source file

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_version:2bc415ebc8c4366ea86204b7d8a2451a7fc0ca29aa9912f355dc7a3959f2b195

Other collected versions

View all collected versions →