Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

general_intellect-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

general_intellect-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for general_intellect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 796b2ed8dac568595985ca34d83cbfab8aee0b34127b094c547c85678156cdd2
MD5 bd421b20ac009f36aa0de34a53e60181
BLAKE2b-256 1ab27e7f46f31722487cb74ebfc8a7eea11f56e500ee9066cd774461cec20b90

See more details on using hashes here.

File details

Details for the file general_intellect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for general_intellect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b83633bc4fc5b821857fe1a5176740dc00d49c48057f6132f324a120454b6f2
MD5 b6fe9afeb8b1b240a74f3409a70166c4
BLAKE2b-256 89aa48fb35bc4eef3e22218a9d5d788d279412acb18a26919dd0f8c839d3ca66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page