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.
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.1.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.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bodhiq-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 52d30786b36ed0a7a186b69eb8ff8db1b86cd8ec8fb736987e63ba63faea855a
MD5 c5626c07a427800bcff604332156d2c6
BLAKE2b-256 b7893c8824a167fd4ef7eb994f08089dd7e8b2c3cdfb82c75516e17e4bd8c542

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bodhiq-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b04c06f84ec25d379f745b269b738d8f40f6402b7ffae76c245de5dd802b78a7
MD5 b4381e99986cc2e1bc2d09a019de4d2d
BLAKE2b-256 72463da98ebcb1b87978477657a106d138357fefbc657268a7c0a76f69554bb7

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