Cognitive processing system for HEAVEN - Handles knowledge synthesis across any corpus size
Project description
Brain Agent
Neural-inspired knowledge retrieval system built on heaven-base.
Overview
Brain Agent provides a sophisticated system for organizing and querying knowledge from document collections. It uses a "neural" metaphor where documents become "neurons" that can be activated based on relevance to queries.
Components
- BrainAgent: Main agent class for knowledge retrieval
- CognizeTool: Identifies relevant neurons for a query
- InstructTool: Generates instructions from activated neurons
- QueryBrainTool: Simple interface for querying registered brains
- SynthesizerReplicant: Alternative replicant-based interface
Installation
# Install heaven-base first
pip install git+https://github.com/sancovp/heaven-base.git@v1.2.0
# Install brain-agent
pip install -e .
Usage
from brain_agent import BrainAgent, register_brain
# Register a brain (document collection)
register_brain(
directory="/path/to/documents",
brain_name="my_knowledge_base",
chunk_size=-1 # whole files
)
# Create and query brain agent
agent = BrainAgent()
result = await agent.query("brain=my_knowledge_base query=What is machine learning?")
Dependencies
- heaven-base>=1.2.0 (for core agent framework)
- langchain-core (for message types)
- Various LLM providers (OpenAI, Google, etc.)
License
Private - All rights reserved.
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
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 brain_agent-0.1.2.tar.gz.
File metadata
- Download URL: brain_agent-0.1.2.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf57b891d4d114366c83978cc367e0d8c21ab7c9c27939d8192556ce84b8d8f1
|
|
| MD5 |
c0476aa47a181ee5e42d56bdcbe87a91
|
|
| BLAKE2b-256 |
9b37cc38b79b6992f5d6389bc1c308dd4ff49d1f539f3c4cbf8ffb756a39901c
|
File details
Details for the file brain_agent-0.1.2-py3-none-any.whl.
File metadata
- Download URL: brain_agent-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3424b777fd89c70a90febc20cafa386991f081c5d4e020792ceb25a7214070f1
|
|
| MD5 |
07dcafbf870817447250230cc075eeef
|
|
| BLAKE2b-256 |
284fc94321a026cc34c5297789b79e6d96d444da47045b8b8ae4c633e090c0bf
|