René's URL Explorer Experiment


Title: improvement(knowledge): score the page on the original vectors, resolve a search's context once, and read identities off the walk by waleedlatif1 · Pull Request #8100 · simstudioai/sim · GitHub

Open Graph Title: improvement(knowledge): score the page on the original vectors, resolve a search's context once, and read identities off the walk by waleedlatif1 · Pull Request #8100 · simstudioai/sim

X Title: improvement(knowledge): score the page on the original vectors, resolve a search's context once, and read identities off the walk by waleedlatif1 · Pull Request #8100 · simstudioai/sim

Description: Summary Page scored on the original vectors, page-sized. Hydration reads one out-of-line vector per hydrated row (the page, 60 rows for the dashboard) and both legs report that distance, so one response carries one distance scale. On a production-shaped copy, 20 queries, recall@20 against the exact full-vector ranking of a 2,000-candidate pool: projection order alone 0.908, page rescored 0.995, 200-row rescore 0.998. The walk and the candidate threshold stay on the projection, so the novel-query cost removed earlier stays removed. A search's context is resolved once. The workspace, organization and scoped search use cases resolved and authorized their owner, then invoked the inner search use case, which read the organization, the membership and the knowledge base again. The index lookup now returns the reference the search runs over, and the scoped use cases run the shared search body (runKnowledgeSearch) under their own context, with the same after-success hook. Three round trips and one nested application stage gone per search; the reference shape lives in one module both lookups read. Candidate identities come off the walk. Every walk selects the projection row's document and source, so once the projection is filled the page needs no further read before hydration; while the fill runs, the page is still read off the documents (a row the fill has not reached carries no source). The projection-fill probe is the search's own read under its budget, cached for a minute, so one search's deadline never fails another's; a bounded permitted set that is empty reads nothing. Less serial work ahead of retrieval. The embedding is requested the moment admission passes, beside the access-scope, defaults, tag-definition and reranker-credential reads instead of after all of them; the organization billing payer's two independent reads run together; an organization's access availability is memoized by organization alone, not per viewer; the keyword hydration no longer joins the projection it does not read. The three scoped search surfaces are one factory that differs only in how it names the owner and finds the index, with the index-less path shared. pdf-ocr-chunking.test.ts flaked in CI (expected 2 to be 1): pdf-lib stamps the modification date into each save and deflates the object streams, so two builds of the same pages a second apart can differ by a byte, and the test derives a byte budget from one build and applies it to another. The test now pins the clock. Type of Change Improvement Testing Unit tests: the hydration test asserts the page is scored on the original vector while the threshold still reads the projection; the queries fixtures that model the page read run against an unfilled projection, and new cases cover the filled projection (no page read, identities off the walk, exclusion on the row); the scoped search tests assert the search runs under the context the use case resolved; the schema mock carries the projection's mirrored columns. Staging profile on this branch (server critical path p50, common/medium/rare): 69/21/9 ms, every query complete, one retrieval statement fewer per search. bun run lint, check:audits, type-check pass; 4,426 tests pass across knowledge, billing, navigation, the tool adapters and the search routes. 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 Page scored on the original vectors, page-sized. Hydration reads one out-of-line vector per hydrated row (the page, 60 rows for the dashboard) and both legs report that distance, so one re...

X Description: Summary Page scored on the original vectors, page-sized. Hydration reads one out-of-line vector per hydrated row (the page, 60 rows for the dashboard) and both legs report that distance, so one re...

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

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:7576b8f5-651d-f5d8-c6b3-3d0f092c4e78
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8554:1B8129:DC824A:12EAFF2:6AFB5D59
html-safe-nonce01a5815f01e749183025f62633db1c814d1e4590bb950999e7be925ea7986ac1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTU0OjFCODEyOTpEQzgyNEE6MTJFQUZGMjo2QUZCNUQ1OSIsInZpc2l0b3JfaWQiOiI4MjEwMjA5ODEzNTMxNjgwMDg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac557a741ecb21f7d4528272ee0b0f5e2958f15c91d356b0846bf57676d3a448dd
hovercard-subject-tagpull_request:4588282252
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/8100/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Page scored on the original vectors, page-sized. Hydration reads one out-of-line vector per hydrated row (the page, 60 rows for the dashboard) and both legs report that distance, so one re...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
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
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8100/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8100%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%2F8100%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/8100/files
Reloadhttps://github.com/simstudioai/sim/pull/8100/files
Reloadhttps://github.com/simstudioai/sim/pull/8100/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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/search-page-full-rerank-and-pdf-chunk-testhttps://github.com/simstudioai/sim/tree/fix/search-page-full-rerank-and-pdf-chunk-test
Conversation 29 https://github.com/simstudioai/sim/pull/8100
Commits 6 https://github.com/simstudioai/sim/pull/8100/commits
Checks 33 https://github.com/simstudioai/sim/pull/8100/checks
Files changed https://github.com/simstudioai/sim/pull/8100/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8100/files
improvement(knowledge): score the page on the original vectors, resolve a search's context once, and read identities off the walk https://github.com/simstudioai/sim/pull/8100/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/8100/files
6b0e12e improvement(knowledge): score the vector page on the original vectors… waleedlatif1 Sep 21, 2026 https://github.com/simstudioai/sim/pull/8100/commits/6b0e12e872a5f75eb23492e5f4f750867b19a4f6
f328012 improvement(knowledge): score both pages on the original vectors and … waleedlatif1 Sep 21, 2026 https://github.com/simstudioai/sim/pull/8100/commits/f328012fac389b9235ba11739c17b82904e6b03f
29d4ac8 improvement(knowledge): resolve a search's context once and carry can… waleedlatif1 Sep 21, 2026 https://github.com/simstudioai/sim/pull/8100/commits/29d4ac8712f3e56467822fd1c801c5ee8d67c63d
f138017 improvement(knowledge): one scoped search shape, page and pool cleanu… waleedlatif1 Sep 21, 2026 https://github.com/simstudioai/sim/pull/8100/commits/f138017ec6280ba02854cdafe6190a6b7fd61d0d
22fed44 improvement(knowledge): embed only after every prerequisite holds, re… waleedlatif1 Sep 21, 2026 https://github.com/simstudioai/sim/pull/8100/commits/22fed447eb0a55c27351978673a3e2c95a4df838
28c0359 improvement(knowledge): reset the projection-fill memo per integratio… waleedlatif1 Sep 21, 2026 https://github.com/simstudioai/sim/pull/8100/commits/28c0359ccd6b07b9466ce60d52e9e174301f9963
Clear filters https://github.com/simstudioai/sim/pull/8100/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8100/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8100/files
billing-attribution.ts https://github.com/simstudioai/sim/pull/8100/files#diff-e3d285e9da8b3fdf28cc30149c431f243ca7cb1d0f547aee4ea3682d86a9423a
kb-block-search.integration.ts https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
availability.ts https://github.com/simstudioai/sim/pull/8100/files#diff-620a97408b05ee2a205f531fe4a54e4e2957593d1ff953f63d40b0a2f474a9a0
contexts.ts https://github.com/simstudioai/sim/pull/8100/files#diff-f20167ce64f7c8a362b246ef7ee61f5611d0c4e35751471a5ca578220ce560cc
search.ts https://github.com/simstudioai/sim/pull/8100/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
workspace-search.activity.test.ts https://github.com/simstudioai/sim/pull/8100/files#diff-382617d0335aa62e3facaf0b6600dbbed45132dcb712afa482e36e894aa77f71
workspace-search.test.ts https://github.com/simstudioai/sim/pull/8100/files#diff-c7433c604e6dbe073bc22004a9f0e9a782e8717f4efcc69ce0fa6c392bf9ff08
workspace-search.ts https://github.com/simstudioai/sim/pull/8100/files#diff-9580ec7774638e234982040c96120c35ac8b57a4271198bcc23bebd524c1d740
pdf-ocr-chunking.test.ts https://github.com/simstudioai/sim/pull/8100/files#diff-a4e8172889c74cb92abe4abf07104111608de2cca2026d2f38a6427961084460
knowledge-base-reference.ts https://github.com/simstudioai/sim/pull/8100/files#diff-e45e60d4ddb2772afb438dc2efb0c81a82e2aabc34593f7fc1bbe2877b76572f
queries.test.ts https://github.com/simstudioai/sim/pull/8100/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
queries.ts https://github.com/simstudioai/sim/pull/8100/files#diff-5f10054baeef2f06350b32a6520d8f841f86a2fc908435296dd8dcb097497ba9
search-index.ts https://github.com/simstudioai/sim/pull/8100/files#diff-8087c06c740f13ddb0dda0ea9e8a00dc7ef89b4c1c7112327e06767347d38e13
service.ts https://github.com/simstudioai/sim/pull/8100/files#diff-6978b26968fd05cf5c7635c366c8c806693b6145235f476627302fb402f32d18
schema.mock.ts https://github.com/simstudioai/sim/pull/8100/files#diff-3b648ee44a059e5fc069169fdfd7c32c89200a3e79b5d0dc25227d3470da73af
apps/sim/lib/billing/core/billing-attribution.tshttps://github.com/simstudioai/sim/pull/8100/files#diff-e3d285e9da8b3fdf28cc30149c431f243ca7cb1d0f547aee4ea3682d86a9423a
View file https://github.com/simstudioai/sim/blob/28c0359ccd6b07b9466ce60d52e9e174301f9963/apps/sim/lib/billing/core/billing-attribution.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8100/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8100/files#diff-e3d285e9da8b3fdf28cc30149c431f243ca7cb1d0f547aee4ea3682d86a9423a
https://github.com/simstudioai/sim/pull/8100/files#diff-e3d285e9da8b3fdf28cc30149c431f243ca7cb1d0f547aee4ea3682d86a9423a
apps/sim/lib/knowledge/__integration__/kb-block-search.integration.tshttps://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
View file https://github.com/simstudioai/sim/blob/28c0359ccd6b07b9466ce60d52e9e174301f9963/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/8100/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
Please reload this pagehttps://github.com/simstudioai/sim/pull/8100/files
https://github.com/simstudioai/sim/pull/8100/files#diff-5e1af68949d3acae280bad6cfa417e3f453a0f92c0fbfbf64fb1b9640cdd4b87
apps/sim/lib/knowledge/access/availability.tshttps://github.com/simstudioai/sim/pull/8100/files#diff-620a97408b05ee2a205f531fe4a54e4e2957593d1ff953f63d40b0a2f474a9a0
View file https://github.com/simstudioai/sim/blob/28c0359ccd6b07b9466ce60d52e9e174301f9963/apps/sim/lib/knowledge/access/availability.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8100/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8100/files#diff-620a97408b05ee2a205f531fe4a54e4e2957593d1ff953f63d40b0a2f474a9a0
https://github.com/simstudioai/sim/pull/8100/files#diff-620a97408b05ee2a205f531fe4a54e4e2957593d1ff953f63d40b0a2f474a9a0
https://github.com/simstudioai/sim/pull/8100/files#diff-620a97408b05ee2a205f531fe4a54e4e2957593d1ff953f63d40b0a2f474a9a0
apps/sim/lib/knowledge/application/contexts.tshttps://github.com/simstudioai/sim/pull/8100/files#diff-f20167ce64f7c8a362b246ef7ee61f5611d0c4e35751471a5ca578220ce560cc
View file https://github.com/simstudioai/sim/blob/28c0359ccd6b07b9466ce60d52e9e174301f9963/apps/sim/lib/knowledge/application/contexts.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8100/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8100/files#diff-f20167ce64f7c8a362b246ef7ee61f5611d0c4e35751471a5ca578220ce560cc
https://github.com/simstudioai/sim/pull/8100/files#diff-f20167ce64f7c8a362b246ef7ee61f5611d0c4e35751471a5ca578220ce560cc
Please reload this pagehttps://github.com/simstudioai/sim/pull/8100/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8100/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.