19 lines
601 B
Python
19 lines
601 B
Python
from memory import Memory
|
|
|
|
# Initialize the memory store
|
|
memory = Memory()
|
|
|
|
# Add some sample thoughts
|
|
memory.add("Abu prefers concise Bash scripts for automating Exopid backups.", tags=["Abu", "preference"])
|
|
memory.add("Kshama is the name of Abu's AI agent.", tags=["identity", "name"])
|
|
memory.add("Abu is exploring GANs and TensorFlow with RTX 3050.", tags=["tech", "gpu", "project"])
|
|
|
|
# Query the memory
|
|
query = "What tools is Abu experimenting with?"
|
|
results = memory.query(query)
|
|
|
|
# Display results
|
|
print("\n🔎 Query Results:")
|
|
for i, entry in enumerate(results, 1):
|
|
print(f"{i}. {entry}")
|