Metadata-Version: 2.1
Name: hawkinsdb
Version: 1.0.1
Summary: A memory layer with ConceptNet integration and LLM-friendly interfaces
Home-page: https://github.com/hawkinsdb/hawkinsdb
Author: HawkinsDB Contributors
Author-email: hawkinsdb@example.com
Project-URL: Bug Tracker, https://github.com/hawkinsdb/hawkinsdb/issues
Project-URL: Documentation, https://hawkinsdb.readthedocs.io/
Project-URL: Source Code, https://github.com/hawkinsdb/hawkinsdb
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Database
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.8,<4
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.1
Requires-Dist: sqlalchemy>=2.0.0
Requires-Dist: sqlalchemy-utils>=0.41.2
Requires-Dist: filelock>=3.0.0
Requires-Dist: typing-extensions>=4.0.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: setuptools>=42.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=7.0.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.3.0; extra == "docs"
Requires-Dist: myst-parser>=2.0.0; extra == "docs"
Provides-Extra: conceptnet
Requires-Dist: networkx>=3.0.0; extra == "conceptnet"
Requires-Dist: requests-cache>=1.1.0; extra == "conceptnet"
Provides-Extra: llm
Requires-Dist: openai>=1.0.0; extra == "llm"
Requires-Dist: tenacity>=8.2.0; extra == "llm"
Requires-Dist: tiktoken>=0.5.0; extra == "llm"
Provides-Extra: all
Requires-Dist: networkx>=3.0.0; extra == "all"
Requires-Dist: requests-cache>=1.1.0; extra == "all"
Requires-Dist: openai>=1.0.0; extra == "all"
Requires-Dist: tenacity>=8.2.0; extra == "all"
Requires-Dist: tiktoken>=0.5.0; extra == "all"

# 🧠 HawkinsDB: Neuroscience-Inspired Memory Layer for AI Applications

Building smarter AI applications isn't just about better models - it's about better memory. HawkinsDB is our take on giving AI systems a more human-like way to store and recall information, inspired by how our own brains work. Based on Jeff Hawkins' Thousand Brains Theory, it helps AI models manage complex information in a way that's both powerful and intuitive.

## Why HawkinsDB?

While vector databases and embeddings have revolutionized AI applications, they often miss the nuanced, multi-dimensional nature of information. Here's why we built HawkinsDB:

- **It's not just another vector database**: Instead of relying on fuzzy similarity searches, we enable precise, context-aware queries that understand the actual meaning and relationships of your data.

- **One memory system to rule them all**: We've unified different types of memory (semantic, episodic, and procedural) into a single framework. Think about a customer support AI that can simultaneously access product specs, past customer interactions, and troubleshooting guides - all working together seamlessly.

- **Inspired by the human brain**: We've based our architecture on neuroscience research, using concepts like Reference Frames and Cortical Columns to create a more robust and adaptable system.

- **You can actually understand what's happening**: Unlike black-box embeddings, our structured approach lets you see and understand how information is connected and why certain decisions are made.

## Requirements

- Python 3.10 or higher
- OpenAI API key (for LLM operations)
- SQLite or JSON storage backend

## Installation

```bash
# Basic installation
pip install hawkinsdb

# Recommended installation with all features
pip install hawkinsdb[all]

# Install specific features
pip install hawkinsdb[conceptnet]  # ConceptNet tools
```

## Quick Start

Here's a simple example showing the power of HawkinsDB:

```python
from hawkinsdb import HawkinsDB, LLMInterface

# Initialize
db = HawkinsDB()
llm = LLMInterface(db)

# Store knowledge with multiple perspectives
db.add_entity({
    "column": "Semantic",
    "name": "Coffee Cup",
    "properties": {
        "type": "Container",
        "material": "Ceramic",
        "capacity": "350ml"
    },
    "relationships": {
        "used_for": ["Drinking Coffee", "Hot Beverages"],
        "found_in": ["Kitchen", "Coffee Shop"]
    }
})

# Query using natural language
response = llm.query("What can you tell me about the coffee cup?")
print(response)
```

## How It Works

HawkinsDB manages information through three core concepts:

### 🧩 Reference Frames
Smart containers for information that capture what something is, its properties, relationships, and context. This enables natural handling of complex queries like "Find kitchen items related to coffee brewing."

### 🌐 Cortical Columns
Just like your brain processes information from multiple perspectives (visual, tactile, conceptual), our system stores knowledge in different "columns." This means an object isn't just stored as a single definition - it's understood from multiple angles.

### Memory Types

We support three key types of memory:

- **Semantic Memory**: For storing facts, concepts, and general knowledge
- **Episodic Memory**: For keeping track of events and experiences over time
- **Procedural Memory**: For capturing step-by-step processes and workflows

### 💾 Storage Options

- **SQLite**: Rock-solid storage for production systems
- **JSON**: Quick and easy for prototyping

### 🔗 Smart Integrations
ConceptNet integration for automatic knowledge enrichment and relationship discovery.

## Contributing

We love contributions! Here's how to help:

1. Fork the repository
2. Create your feature branch
3. Make your changes
4. Run the tests
5. Submit a pull request

## Development

```bash
# Clone and set up
git clone https://github.com/harishsg993010/HawkinsDB.git
cd HawkinsDB
pip install -e ".[dev]"
pytest tests/
```

## 🗺️ Status and Roadmap

Currently under active development. Our focus areas:

- [ ] Enhanced multi-modal processing
- [ ] Performance optimizations for large-scale deployments
- [ ] Extended LLM provider support
- [ ] Advanced querying capabilities
- [ ] Improved documentation and examples

## License

HawkinsDB is available under the MIT License. See [LICENSE](LICENSE) for details.

---

Built by developers who think memory matters. Questions? Issues? Ideas? We'd love to hear from you!
