Skip to content

Starter kit for memory documents in another repository - #130

Merged
venkat1701 merged 1 commit into
mainfrom
feature/memory-kit
Nov 25, 2026
Merged

venkat1701 merged 1 commit into
mainfrom
feature/memory-kit

Conversation

@venkat1701

Copy link
Copy Markdown
Collaborator

Stacked on #129. Merge order for the whole memory stack: #128, #124, #125, #126, #127, #129, then this one, retargeting each to main once the one below it merges.

examples/memory is a folder to copy into a project that keeps Markdown memory in HStore:

  • compose.yml and .env.example. The image comes from HSTORE_IMAGE and HSTORE_TAG (default hstore:latest, as built by docker build -t hstore .), and the embedding provider is set in .env.
  • hstore_memory, a Python client using only the standard library, over the Studio HTTP API. Memory.remember stores a new revision (creating the node the first time), and there are search, retrieve, revisions, latest, forget, rebuild_text_index and client.execute for any HQL. The same operations are available as python3 -m hstore_memory ingest|remember|search|retrieve|forget|rebuild|hql.
  • smoke.sh and smoke_test.py start a throwaway stack on ports 17532 and 17580 and check ingest, sections, search, a new revision, history, RETRIEVE, REBUILD TEXT INDEX, a restart and a purge. Then they remove the stack and its volume.

docs/operations/docker.md has a new section, "Memory from another repository", covering the client, the raw HTTP calls for other languages, and the encoder settings. The README links to it. Both now say the image package is private, instead of saying the repository is.

Checked: smoke.sh from this folder gives 0 failures in both stages against an image built from #129 merged with #128. With no image present, it stops and says how to build one. The same kit, run from a copy outside the repo with the image loaded from a docker save archive and also pulled from ghcr.io/metacoglabs/hstore-memory:0.2.0-dec80f2 (private, linked to this repository), also gave 0 failures. The README's curl example and docker compose exec hstore hstore connect were also run against it.

examples/memory holds a Compose file, an .env.example, sample
documents and hstore_memory, a standard-library Python client for the
Studio HTTP API. It stores Markdown as revisions, searches and
retrieves sections, purges documents and runs any HQL, from code or
with python3 -m hstore_memory. smoke.sh runs it end to end against a
throwaway stack, including a restart and REBUILD TEXT INDEX.

docs/operations/docker.md gains a section on it, the README points
to it, and both drop the note about the repository being private: the
repository is public, the image packages are not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant