-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: AI Search plugin with indexing, search modal, and demo site #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
khoinguyenpham04
merged 39 commits into
emdash-cms:main
from
ttmx:feat/ai-search-plugin-v2
Aug 5, 2026
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
5f63420
feat(cloudflare): add AI Search plugin
ttmx 7e9e093
feat(demo): wire AI Search into the Cloudflare demo
ttmx 1f8406d
chore: AI Search changeset and lockfile
ttmx faa7142
fix(ai-search): address review feedback
ttmx 2ac62dc
Return 503 instead of 500 if AI Search fails.
ttmx d6d0f39
Stop needlessly stripping markdown from bylines
ttmx 2ed3d9e
Apply suggestion from @emdashbot[bot]
ttmx 8e322aa
feat(ai-search): package snippet endpoint
ttmx 7e3a24a
feat(ai-search): add Astro snippet component
ttmx fa2f435
Fixed scheduled handler in worker.ts
ttmx 268a905
fix(ai-search): make public search endpoint work on anonymous requests
scottbuscemi b4a56aa
style: format
emdashbot[bot] 113f90e
Add docs for the Cloudflare AI Search plugin
ttmx 8689771
Change plugin name from AI Search to Cloudflare AI Search
ttmx bb3932b
Simplify uploadItem()
ttmx 9c5acdf
Remove "limit" from AISearchQueryInput, it is configurable in the ins…
ttmx 6dc9db0
Don't index draft content if post was previously indexed.
ttmx 29a9ece
Actually disable ai search plugin endpoint when plugin is disabled.
ttmx e426115
style: format
emdashbot[bot] 770beef
Clarify AI Search result limit ownership
ttmx a5a7a18
Remove narrative comments from Cloudflare demo
ttmx 43b35fc
Remove narrative AI Search test comments
ttmx 578e41f
Remove weak AI Search build safety test
ttmx 5aa3b2a
Fix hotpath db query, limited to 1 per minute per isolate
ttmx 4e85a49
style: format
emdashbot[bot] 84dce83
Fix AI Search removal hooks for deselected collections
ttmx c9e4fc1
Reconcile AI Search metadata configuration
ttmx 2bca802
Validate and forward AI Search result limits
ttmx 093aeb6
Refresh AI Search synonyms after updates
ttmx 7cb86eb
Omit AI Search indexing timestamps from results
ttmx e96ebe5
Filter AI Search collections during retrieval
ttmx 93c6150
Persist default AI Search collections
ttmx d5550fe
Remove unused AI Search install hook
ttmx b3ab6e5
style: format
emdashbot[bot] 8090b47
fix(cloudflare): recognize Cloudflare's ai_search_not_found error
ttmx 86e5248
fix(cloudflare): only create an AI Search instance when it is missing
ttmx 4aa7e77
refactor(cloudflare): import cloudflare:workers once per isolate
ttmx bf7e1cf
fix(cloudflare): drop deselected collections from the AI Search index
ttmx 5b05bc0
docs: require an initial AI Search sync during setup
ttmx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@emdash-cms/cloudflare": minor | ||
| --- | ||
|
|
||
| Adds a Cloudflare AI Search plugin with automatic content indexing, cron-driven reindexing, language-aware queries, synonyms, index status, admin configuration, and an Astro search component with the browser snippet included. | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { POST, prerender } from "@emdash-cms/cloudflare/plugins/ai-search"; |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.