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
- Clone this repository:
git clone https://github.com/amanshaw4511/bodhiq.git
cd bodhiq
- Create a Python virtual environment:
python3 -m venv .venv
source .venv/bin/activate # Linux/Mac
.venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
- 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 Clickrequirements.txt: Python dependenciesREADME.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72382d89ea6f9180861726443298a21a6c77da874aea59855dca8ac19226327d
|
|
| MD5 |
17a0192c64ce894da41e8418c974f8c3
|
|
| BLAKE2b-256 |
d76e46604ba5355dfa3f92f657d01553bef57570ee063bc43a304aaacb1c897b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab71af8c74bbc5194c30816675f5678ddc9959cc7a9a8c2d90df813487fc3995
|
|
| MD5 |
8eb14e03c59ba703d8e2dcf60dd70b74
|
|
| BLAKE2b-256 |
3e41683da4275a5d558c966f026eed4eadf3fff9a05452f576c7f18163a339bd
|