OrbMem – A lightweight Cognitive Memory & Vector framework (Memory, Vectors, Graph, Safety).
Project description
OCDB — Cognitive Database Framework
OCDB (Orbynt Cognitive Database) is a lightweight, modular framework that combines 🧠 Memory, 🔍 Vector Search, 🕸 Graph Reasoning, and 🛡 Safety Scanning into a single Python package.
Designed for:
- AI agents
- Chatbots
- Automation systems
- Reasoning pipelines
- Personal assistants
- Any system that needs context, memory, search, and safety
This is the local developer version for PyPI. A fully hosted OCDB Cloud Platform will launch separately.
✨ Features
🧠 1. Memory Engine
Store and retrieve structured memory using a simple API.
from ocdb.core.ocdb import OCDB
ocdb = OCDB()
ocdb.memory_set("name", {"value": "Abhishek"})
print(ocdb.memory_get("name"))
🔍 2. Vector Search (FAISS local engine)
Semantic search powered by FAISS.
ocdb.vector_engine.add_text("hello world", {"id": "1"})
results = ocdb.vector_search("hello", k=3)
🕸 3. Graph Engine (NetworkX)
Build reasoning trees or node-based logic.
ocdb.graph_add("root", "Start")
ocdb.graph_add("child", "Next", parent="root")
🛡 4. Safety Engine
Simple text-safety scanning with MongoDB + time-series tracking.
events = ocdb.safety_scan("This is a sample text")
📦 Installation
pip install orbmem
📁 Project Structure
ocdb/
├── core/ # Config, auth, high-level OCDB interface
├── engines/ # Memory, vector, graph, safety engines
├── models/ # Memory & safety models
├── utils/ # Helpers, exceptions, logging
└── db/ # Database connectors (Mongo, Neo4j, Postgres, Redis)
🚀 Quickstart Example
from ocdb.core.ocdb import OCDB
ocdb = OCDB()
# Memory
ocdb.memory_set("demo", {"text": "Hello OCDB"})
print(ocdb.memory_get("demo"))
# Vector
ocdb.vector_engine.add_text("Abhishek is building OCDB", {"id": "vec1"})
print(ocdb.vector_search("Abhishek"))
# Graph
ocdb.graph_add("n1", "Start")
ocdb.graph_add("n2", "Next", parent="n1")
# Safety
print(ocdb.safety_scan("Harmless text"))
📝license
This project is released under the MIT License.
See the LICENSE file for full terms.
👨💻 Author
Tetala Lakshmi Abhishek Reddy
Creator of OCDB
📧Email: abhishek.orbynt@gmail.com
⭐ Support OCDB
f you like this project, please star the repository and share it!
The OCDB Cloud Dashboard + Hosted API is coming soon… 🚀
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 orbmem-1.0.2.tar.gz.
File metadata
- Download URL: orbmem-1.0.2.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dd035629bdf2687663242dd4596718cbbf976d0eb04dc0f4ec96ccadbb100a4
|
|
| MD5 |
fa98fe0f0b48f4e32a3b9e95d2b141ae
|
|
| BLAKE2b-256 |
79a9650ab71967b9d47d62096149461b9483a0ed8f754e594489f0c49661b7d6
|
File details
Details for the file orbmem-1.0.2-py3-none-any.whl.
File metadata
- Download URL: orbmem-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ee9f28ab511585d6b56cd632dda17668b396809ca05fb59123c0b5d1724c584
|
|
| MD5 |
ed8afcc634925ec3a73ef38e037fb1f9
|
|
| BLAKE2b-256 |
d37658142b0595ec266e1b6914f56485a6c3011582cf9e4dd7905ee9b3e40e8b
|