[recipes] Local Docker Open Brain (Qdrant) — multi-tenancy-primed vector store with ACL#334
Open
tomotvos wants to merge 1 commit into
Open
Conversation
…tor store with ACL
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.
Contribution Type
/recipes)/schemas)/dashboards)/integrations)/skills)What does this do?
Adds a Qdrant-backed variant of the local-docker recipe that builds the groundwork for an eventual multi-user deployment without sacrificing the single-user local experience.
Why the extra machinery? A single-user pgvector recipe works fine for one person, but as soon as you want to share an Open Brain with teammates — or deploy it as a hosted service — you need user isolation and sharing semantics baked into the data model. Retrofitting that later means a painful data migration. By introducing
owner_id,visibility, andshared_withfields on every thought now, and routing every read through a singlebuildAclFilter()enforcement point, the same code path that runs trivially in local mode (whereowner_idis alwayslocal-user) is ready to enforce real user isolation whenIDENTITY_MODEflips fromlocaltoentra(Entra OIDC) in Stage 2 of the multi-tenant roadmap. No data migration is needed at that point — the ACL fields are already on every thought.What's new compared to the pgvector recipe?
share_thought— flips a thought's visibility betweenprivateandsharedsearch_thoughtsgains ascopeparameter (private/shared/all)capture_thoughtgains avisibilityparameterscripts/migrate-pgvector-to-qdrant.mjs) copies existing pgvector thoughts into Qdrant without re-embedding (same Titan V2 model, vectors are directly portable)Requirements
amazon.titan-embed-text-v2:0andus.anthropic.claude-haiku-4-5-20251001-v1:0bedrock:InvokeModelpermissionsnpm install postgresin the script's directory (the dependency is not in the server'spackage.jsonsince the server itself never talks to Postgres)The recipe
ARCHITECTURE.mddocuments the AWS credential handling, ACL filter design, identity modes (local vs entra stub), Qdrant collection schema and payload indexes, and the Stage 1 → Stage 2 migration path.Notes
Companion to
[recipes] Local Docker Open Brain(separate PR). The two recipes are independent — you can run either, neither, or both. The Qdrant recipe does not modify any file in the pgvector recipe.Checklist
README.mdwith prerequisites, step-by-step instructions, and expected outcomemetadata.jsonhas all required fields