Skip to main content

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!

Metadata

Release files for bodhiq 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bodhiq 0.1.1
File Size Uploaded
bodhiq-0.1.1.tar.gz 36.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bodhiq 0.1.1
File Interpreter ABI Platform
bodhiq-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 44.6 kB

Release files / bodhiq-0.1.1.tar.gz

Download URL bodhiq-0.1.1.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
52d30786b36ed0a7a186b69eb8ff8db1b86cd8ec8fb736987e63ba63faea855a
BLAKE2b-256 checksum
How to use checksums
b7893c8824a167fd4ef7eb994f08089dd7e8b2c3cdfb82c75516e17e4bd8c542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / bodhiq-0.1.1-py3-none-any.whl

Download URL bodhiq-0.1.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b04c06f84ec25d379f745b269b738d8f40f6402b7ffae76c245de5dd802b78a7
BLAKE2b-256 checksum
How to use checksums
72463da98ebcb1b87978477657a106d138357fefbc657268a7c0a76f69554bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page