[DOC] Add Ejentum cognitive harness recipe to examples/use_with#7123
Open
ejentum wants to merge 2 commits into
Open
[DOC] Add Ejentum cognitive harness recipe to examples/use_with#7123ejentum wants to merge 2 commits into
ejentum wants to merge 2 commits into
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
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.
Summary
Adds a
use_with/ejentum/recipe demonstrating how to wrap the Ejentum cognitive harness (memory mode) around a Chroma collection in two patterns:collection.add(...)to decide whether a candidate document deserves indexing. Keeps the collection lean.collection.query(...)returns top-k by similarity, use the harness as a reranker that flags hits as materially useful versus lexically similar. Similarity is not the same as relevance for the user's current question.Both patterns are plain-Python composition over Chroma's public client and Ejentum's public REST gateway. Nothing replaces or wraps Chroma APIs; the harness sits outside the store as a perception layer.
Files
examples/use_with/ejentum/README.md: explains the two patterns, when each helps, and links to the runnable demo. Matches the shape ofexamples/use_with/ollama.md.examples/use_with/ejentum/harness_around_chroma.py: end-to-end runnable demo that exercises both patterns against a small in-memory Chroma collection.Slot follows the existing
examples/use_with/{cohere,jina,roboflow}/andexamples/use_with/ollama.mdpattern: per-vendor folder with a short README and (optionally) a runnable artifact.Why this fits
The Ejentum memory harness returns perception scaffolds (what to attend to, what to suppress, what to verify) for deciding what to store and scoring what to retrieve. It does not store or retrieve anything itself. That makes it a clean complement to Chroma, not a competitor. The recipe is explicit about this: Chroma stays the storage primitive; the harness shapes the gates around it.
Affiliation
I maintain
ejentum-mcp. Submitting this recipe because the pre-storage-filter pattern is a real use we've shipped againstmem0in a sibling cookbook (mem0ai/mem0#5238) and it generalises cleanly to any vector store. Chroma'sexamples/use_with/is the right surface for this shape. Ejentum has free and paid tiers; the README links to the dashboard for keys, not to a checkout.Test plan
examples/use_with/{cohere,jina,roboflow,ollama}entries.Client,get_or_create_collection,add,query,get).chromadb,openai,requests.python harness_around_chroma.pyagainst liveOPENAI_API_KEY+EJENTUM_API_KEY(cannot run in this environment with live keys; happy to follow up if the reviewer spots an issue).