Skip to content

Commit a695416

Browse files
committed
Update search functionality to include additional content types in semantic search
- Modified the search page subtitle to reflect expanded content types: talks, resume, credits, and testimonials. - Updated server-side query description to include new content types for improved user clarity. - Enhanced allowed types in the server configuration to support the new content categories. These changes enhance the semantic search capabilities by providing users with a broader range of indexed content.
1 parent 9fe3bcd commit a695416

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

app/routes/mcp+/mcp.server.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function createServer() {
170170
query: z
171171
.string()
172172
.describe(
173-
`The query to search for. This uses semantic search across indexed content (blog posts, pages, and podcasts). Simpler and shorter queries are better.`,
173+
`The query to search for. This uses semantic search across indexed content (blog posts, pages, podcasts, talks, resume, credits, and testimonials). Simpler and shorter queries are better.`,
174174
),
175175
category: z
176176
.union([
@@ -179,6 +179,9 @@ function createServer() {
179179
z.literal('Call Kent Podcast'),
180180
z.literal('Workshops'),
181181
z.literal('Talks'),
182+
z.literal('Resume'),
183+
z.literal('Credits'),
184+
z.literal('Testimonials'),
182185
])
183186
.optional()
184187
.describe(
@@ -215,7 +218,10 @@ function createServer() {
215218
'Call Kent Podcast': ['ck'],
216219
// Not currently included in the semantic search index.
217220
Workshops: [],
218-
Talks: [],
221+
Talks: ['talk'],
222+
Resume: ['resume'],
223+
Credits: ['credit'],
224+
Testimonials: ['testimonial'],
219225
}
220226

221227
if (category && allowedTypesByCategory[category].length === 0) {

app/routes/search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default function SearchPage() {
7979
<div>
8080
<HeroSection
8181
title="Search"
82-
subtitle="Semantic search across posts, pages, and podcasts."
82+
subtitle="Semantic search across posts, pages, podcasts, talks, resume, credits, and testimonials."
8383
imageBuilder={images.kodyProfileGray}
8484
action={
8585
<Form method="get" action="/search" className="w-full">

0 commit comments

Comments
 (0)