MCPcopy Create free account
hub / github.com/code100x/daily-code / getSearchResults

Function getSearchResults

apps/web/lib/search.ts:88–95  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

86}
87
88export async function getSearchResults(query: string) {
89 const vector = await model.embedContent(query);
90 const response = await client.search("DailyCode", {
91 vector: vector.embedding.values.slice(0, VECTOR_SIZE),
92 limit: 5,
93 });
94 return response;
95}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected