(query: string)
| 86 | } |
| 87 | |
| 88 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected