Persistent, semantic memory for AI agents. No vector DB required.
Project description
general-intellect (Python SDK)
Persistent, semantic memory for AI agents. No vector DB required.
Install
pip install general-intellect
Usage
from generalintelect import GIClient
gi = GIClient(url="http://localhost:8000", agent_id="support-bot")
# In your LLM call handler:
context = gi.recall(query=user_message, namespace=call_id)
response = llm.complete(system_prompt + context + user_message)
gi.remember(content=f"User said: {user_message}", namespace=call_id)
Async
from generalintelect import AsyncGIClient
gi = AsyncGIClient(url="http://localhost:8000", agent_id="support-bot")
context = await gi.recall(query=user_message, namespace=call_id)
await gi.remember(content=user_message, namespace=call_id)
Vapi / Retell middleware
from generalintelect import GIClient
from generalintelect.vapi import with_memory
gi = GIClient(agent_id="support-bot") # reads GI_URL from env
@with_memory(gi)
def handle_webhook(payload: dict) -> dict:
context = payload["_gi_context"] # injected automatically
response = llm.complete(system_prompt + context + transcript)
return {"response": response}
Memory degrades gracefully — if GI_URL is not set, recall() returns "" and remember() is a no-op.
Run the memory server
docker run -p 8000:8000 generalintelect/gi-server
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 general_intellect-0.1.0.tar.gz.
File metadata
- Download URL: general_intellect-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
796b2ed8dac568595985ca34d83cbfab8aee0b34127b094c547c85678156cdd2
|
|
| MD5 |
bd421b20ac009f36aa0de34a53e60181
|
|
| BLAKE2b-256 |
1ab27e7f46f31722487cb74ebfc8a7eea11f56e500ee9066cd774461cec20b90
|
File details
Details for the file general_intellect-0.1.0-py3-none-any.whl.
File metadata
- Download URL: general_intellect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b83633bc4fc5b821857fe1a5176740dc00d49c48057f6132f324a120454b6f2
|
|
| MD5 |
b6fe9afeb8b1b240a74f3409a70166c4
|
|
| BLAKE2b-256 |
89aa48fb35bc4eef3e22218a9d5d788d279412acb18a26919dd0f8c839d3ca66
|