René's URL Explorer Experiment


Title: fix(knowledge): share compact vector retrieval across access scopes by icecrasher321 · Pull Request #7944 · simstudioai/sim · GitHub

Open Graph Title: fix(knowledge): share compact vector retrieval across access scopes by icecrasher321 · Pull Request #7944 · simstudioai/sim

X Title: fix(knowledge): share compact vector retrieval across access scopes by icecrasher321 · Pull Request #7944 · simstudioai/sim

Description: Summary Route workspace-scoped KB and workflow vector searches through the shared compact-candidate and full-vector reranking engine. Remove the separate broad full-vector query and per-KB result quotas. Enforce workspace access and tags before candidate limits; preserve live user verification and current access checks during hydration. Keep small scopes exact and cap broad full-vector reranking at 1,600 candidates. Preserve caller deadlines and truthful partial-result reporting. Diagnostics distinguish candidate selection, reranking, authorization, and hydration without claiming a physical index was used. Type of Change Bug fix Testing 300 focused unit tests and 22 PostgreSQL integration tests pass, covering authorization, supported embedding widths, concurrent KB requests, and timeout reporting. Large PostgreSQL benchmark of the retrieval engine: 27 passed, one optional live Go/provider test skipped. Synthetic corpus: 211,000 chunks; timed database limited to 2 CPUs / 1 GiB. Real application and SQL paths, controlled embedding and permission HTTP responses. Final benchmark recovered all measured exact top-50/top-15 neighbors. Eight concurrent workspace searches completed vector retrieval in 0.24–0.88 seconds. EXPLAIN verifies compact HNSW use for broad scopes and bounded compact scans for the smaller full-width fixture. Follow-up refill regression: if the nearest row loses access before hydration, a single-result workspace search returns the next authorized row from the same minimum 20-row page. Confirmed the regression fails before the fix; reran the focused unit and real PostgreSQL suites afterward. An earlier shared-machine run had two timeout samples during concurrent local validation; the unchanged full-suite repeat passed. These synthetic measurements are not a production capacity guarantee. Selected samples evict PostgreSQL shared buffers, not the OS cache. Type checking, lint, all 46 repository audits, block-registry validation, and docs-manifest validation pass. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Route workspace-scoped KB and workflow vector searches through the shared compact-candidate and full-vector reranking engine. Remove the separate broad full-vector query and per-KB result ...

X Description: Summary Route workspace-scoped KB and workflow vector searches through the shared compact-candidate and full-vector reranking engine. Remove the separate broad full-vector query and per-KB result ...

Opengraph URL: https://github.com/simstudioai/sim/pull/7944

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:990f5aec-c34b-29ed-f0a1-caec47287c18
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E9A:22FE8E:986CE2:D83D15:6AFB5133
html-safe-nonce8425bdb283b5b92dae9a86212857d4116fcf4ccf4246f0422a108a4603caf6e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTlBOjIyRkU4RTo5ODZDRTI6RDgzRDE1OjZBRkI1MTMzIiwidmlzaXRvcl9pZCI6IjUyMTE1Nzg5MTE1MDE3OTk3MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaadc4eca97398e065284c36fcc800acceb4296129b594cc54c1373f503011e00
hovercard-subject-tagpull_request:4563018278
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7944/files
twitter:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
og:image:altSummary Route workspace-scoped KB and workflow vector searches through the shared compact-candidate and full-vector reranking engine. Remove the separate broad full-vector query and per-KB result ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7944/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7944%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7944%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/7944/files
Reloadhttps://github.com/simstudioai/sim/pull/7944/files
Reloadhttps://github.com/simstudioai/sim/pull/7944/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
icecrasher321https://github.com/icecrasher321
staginghttps://github.com/simstudioai/sim/tree/staging
codex/unify-scoped-vector-retrievalhttps://github.com/simstudioai/sim/tree/codex/unify-scoped-vector-retrieval
Conversation 27 https://github.com/simstudioai/sim/pull/7944
Commits 5 https://github.com/simstudioai/sim/pull/7944/commits
Checks 34 https://github.com/simstudioai/sim/pull/7944/checks
Files changed https://github.com/simstudioai/sim/pull/7944/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7944/files
fix(knowledge): share compact vector retrieval across access scopes https://github.com/simstudioai/sim/pull/7944/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/7944/files
5c2e6c7 fix(knowledge): share compact vector retrieval across access scopes Sep 17, 2026 https://github.com/simstudioai/sim/pull/7944/commits/5c2e6c72f68ee9bd47d8474ddfc7f2fa2d16f76a
e72dea2 fix(knowledge): align search fixtures with shared retrieval Sep 17, 2026 https://github.com/simstudioai/sim/pull/7944/commits/e72dea22e968d5e5f8f625a070bb5aa5ac475a6f
7828bde fix(knowledge): preserve recall within bounded reranking Sep 17, 2026 https://github.com/simstudioai/sim/pull/7944/commits/7828bdee77cad174b04ffb814e0254225f51f252
454f44c fix(knowledge): validate bounded compact scan plans Sep 17, 2026 https://github.com/simstudioai/sim/pull/7944/commits/454f44c98c10cf19dc978d4b0a2d0131090a39e3
e1133d6 fix(knowledge): batch workspace search refills Sep 17, 2026 https://github.com/simstudioai/sim/pull/7944/commits/e1133d6461942a3757468b5c96f00ca5bb8484c7
Clear filters https://github.com/simstudioai/sim/pull/7944/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7944/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7944/files
utils.test.ts https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
kb-block-search.integration.ts https://github.com/simstudioai/sim/pull/7944/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
search-latency.integration.ts https://github.com/simstudioai/sim/pull/7944/files#diff-2a5bd119422fb2a9a479531e9e0ea926dbaef06eb2a9ae45e1f786fac32385e8
budget.test.ts https://github.com/simstudioai/sim/pull/7944/files#diff-e5197295a64cd7c8085753e5e7c1567d32692c5ee259012a19ab28d5b90466d7
diagnostics.ts https://github.com/simstudioai/sim/pull/7944/files#diff-454cb97c4d1f9ca41cc9ec69e41039731b15cf7250ff59d784f19495ea0caea6
queries.test.ts https://github.com/simstudioai/sim/pull/7944/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
queries.ts https://github.com/simstudioai/sim/pull/7944/files#diff-5f10054baeef2f06350b32a6520d8f841f86a2fc908435296dd8dcb097497ba9
apps/sim/app/api/knowledge/search/utils.test.tshttps://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
View file https://github.com/simstudioai/sim/blob/e1133d6461942a3757468b5c96f00ca5bb8484c7/apps/sim/app/api/knowledge/search/utils.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7944/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
https://github.com/simstudioai/sim/pull/7944/files#diff-622eb7dc0018f918276373515a26f4e88b212096bbf23572a1f6bea7ef36d07c
apps/sim/lib/knowledge/__integration__/kb-block-search.integration.tshttps://github.com/simstudioai/sim/pull/7944/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
View file https://github.com/simstudioai/sim/blob/e1133d6461942a3757468b5c96f00ca5bb8484c7/apps/sim/lib/knowledge/__integration__/kb-block-search.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7944/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7944/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
https://github.com/simstudioai/sim/pull/7944/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
Please reload this pagehttps://github.com/simstudioai/sim/pull/7944/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7944/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.