feat: improve semantic search marimo notebook#582
Merged
Conversation
- Multilingual support: switch to multilingual-e5-large, embed English and Spanish sentences, show cross-lingual retrieval and language filtering - Interactive query input with mo.ui.text and mo.ui.radio language selector - Interactive API key input: reads from env/.env with a password field fallback for molab users, with callout admonitions for each state - Display search results as mo.ui.table with lang column - Pin datasets==3.5.1 (datasets>=4 breaks Helsinki-NLP/tatoeba) - Use keyword argument names in all Pinecone API calls - Remove numpy and tqdm (replaced by mo.status.progress_bar) - Remove notebook deps from root pyproject.toml Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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
Follow-up improvements to the semantic search marimo notebook merged in #581.
Changes
Multilingual support
multilingual-e5-largefor cross-lingual retrievalfilter_pairs+extract_sentences(lang)Interactivity
mo.ui.textandmo.ui.radiolanguage selectorPINECONE_API_KEYfrom env/.envwith amo.ui.text(kind="password")fallback for molab users; usesmo.calloutadmonitions for each stateDisplay
mo.ui.tablewith alangcolumn showing which language each hit came frommo.status.progress_bar(replacing tqdm)Correctness / hygiene
datasets==3.5.1—datasets>=4dropped support for custom loading scripts used byHelsinki-NLP/tatoebanumpyandtqdmdependenciespyproject.toml(they belong in the notebook's# /// scriptinline metadata)Test Plan
uvx marimo edit --sandbox) with a validPINECONE_API_KEYenores🤖 Generated with Claude Code
Note
Low Risk
Low risk documentation/notebook-only changes that adjust dependency pinning and interactive API key handling; no production code paths affected.
Overview
Improves the
docs/semantic-search.pysemantic search marimo notebook setup experience by pinningdatasets==3.5.1and replacing the env-only Pinecone key requirement with an interactive API key input (env/.envauto-detect + password field fallback with callouts).Adds a guard (
mo.stop) to halt execution until a key is provided and introduces a brief section clarifying client instantiation (including the example-onlysource_tag).Reviewed by Cursor Bugbot for commit 6da4180. Bugbot is set up for automated code reviews on this repo. Configure here.