Customize knowledge creation behavior in Playground via theme db#2805
Merged
Customize knowledge creation behavior in Playground via theme db#2805
Conversation
kzsb03
approved these changes
Mar 9, 2026
|
@CodiumAI-Agent /update_changelog |
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.
Description
This PR contains allows for two customizations of UI and back-end behavior related to knowledge (vectors) in Playground:
MakeEngineMCPwhile creating vectors. This PR creates theenableKnowledgeMCPboolean flag set in theme to override this if desired. This is may be important in some implementations, since the engine MCP would be attached to any chat using the vector, creating potential collisions with other MCPs designed for handling vector databases, reading documents, etc.allowEmbeddingOptionstofalsein theme, this allows the option to hide that dropdown on the UI. If this is hidden, the vector database will be created using the newdefaultEmbedderIdvalue from theme or select the first model available as returned byMyEngines.Changes Made
packages/playground/src/components/knowledge/new-knowledge-mcp-overlay.tsxHow to Test
If you wish to test disabling MCP creation and embedding model selection, set
enableKnowledgeMCPandallowEmbeddingOptionstofalsein theme. To test, create a new knowledge store in playground. You should see:MakeEngineMCPpixel in network callsMCPtag applied to the vectorTo regression test current behavior, set these as
truein theme or do not add them to theme. You should see that vectors become MCPs by default and users may select embedders of their choosing.Screenshots


Notes
theme.localadded in vite config can be ignored. Used for local testing