Skip to main content

Personal memory search CLI inspired by Bodha

Project description

Bodhiq

Bodhiq is a personal memory and search CLI tool that helps you store, search, and manage your thoughts, notes, and memories.
Inspired by the Sanskrit word Bodha (knowledge, awareness), Bodhiq combines fast search, TF-IDF semantic matching, and tags to make finding your memories easy and intelligent.


Features

  • Add memories: Quickly save notes with optional tags.
  • Query memories: Search your memories using keywords or semantic TF-IDF search.
  • Tag filtering: Organize and filter your memories with tags.
  • Delete memories: Remove memories by ID.
  • List memories: View all stored memories in a clean table.
  • Reset index: Clear all stored memories (with confirmation).
  • Optional TF-IDF search: Find relevant results even if the query doesn't match exactly.
  • Debug mode: See detailed logs and Meilisearch task info.

Installation

  1. Clone this repository:
git clone https://github.com/amanshaw4511/bodhiq.git
cd bodhiq
  1. Create a Python virtual environment:
python3 -m venv .venv
source .venv/bin/activate   # Linux/Mac
.venv\Scripts\activate      # Windows
  1. Install dependencies:
pip install -r requirements.txt
  1. Make sure you have Meilisearch running locally:
docker run -it --rm -p 7700:7700 getmeili/meilisearch

Usage

# Add a memory
bodhiq add "My name is Aman" --tag personal --tag intro

# Query a memory
bodhiq q "what is my name"

# Query using TF-IDF
bodhiq q "my name" --tfidf

# Delete a memory
bodhiq rm <memory_id>

# List all memories
bodhiq ls

# Reset all memories
bodhiq reset

Flags

  • --wait / --no-wait : Wait for Meilisearch tasks to complete (default: wait)
  • --debug : Enable debug output to see full task info
  • --tag : Add tags or filter memories by tags
  • --tfidf : Enable TF-IDF based semantic search

CLI Command Examples

# Add memory
bodhiq add "Learn Python CLI tools" --tag coding

# Search memory
bodhiq q "python tools" --tag coding --tfidf

# List all memories
bodhiq ls

# Delete a memory
bodhiq rm a1b2c3d4e5f6

Architecture

Bodhiq is split into modular components:

  • core/ : Core logic (add, query, delete, list, reset)
  • utils.py : Utilities (Meilisearch client, logging, helper functions)
  • cli.py : CLI entry point using Click
  • requirements.txt : Python dependencies
  • README.md : Project documentation

License

Bodhiq is open-source under the MIT License.


Contributing

Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.


Inspiration

The name Bodhiq comes from Bodha (knowledge/awareness) + IQ, representing a smart, aware, and intelligent memory assistant.


Enjoy using Bodhiq — your personal memory companion!

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

bodhiq-0.1.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

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

bodhiq-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file bodhiq-0.1.0.tar.gz.

File metadata

  • Download URL: bodhiq-0.1.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for bodhiq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 72382d89ea6f9180861726443298a21a6c77da874aea59855dca8ac19226327d
MD5 17a0192c64ce894da41e8418c974f8c3
BLAKE2b-256 d76e46604ba5355dfa3f92f657d01553bef57570ee063bc43a304aaacb1c897b

See more details on using hashes here.

File details

Details for the file bodhiq-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bodhiq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for bodhiq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab71af8c74bbc5194c30816675f5678ddc9959cc7a9a8c2d90df813487fc3995
MD5 8eb14e03c59ba703d8e2dcf60dd70b74
BLAKE2b-256 3e41683da4275a5d558c966f026eed4eadf3fff9a05452f576c7f18163a339bd

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