Repository navigation
Starter kit for memory documents in another repository - #130
Merged
Merged
Conversation
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.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/memoryis a folder to copy into a project that keeps Markdown memory in HStore:compose.ymland.env.example. The image comes fromHSTORE_IMAGEandHSTORE_TAG(defaulthstore:latest, as built bydocker 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.rememberstores a new revision (creating the node the first time), and there aresearch,retrieve,revisions,latest,forget,rebuild_text_indexandclient.executefor any HQL. The same operations are available aspython3 -m hstore_memory ingest|remember|search|retrieve|forget|rebuild|hql.smoke.shandsmoke_test.pystart 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.mdhas 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.shfrom 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 adocker savearchive and also pulled fromghcr.io/metacoglabs/hstore-memory:0.2.0-dec80f2(private, linked to this repository), also gave 0 failures. The README's curl example anddocker compose exec hstore hstore connectwere also run against it.