MCPcopy Create free account
hub / github.com/electric-sql/electric / vectorQuerySql

Function vectorQuerySql

packages/agents/src/docs/knowledge-base.ts:289–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287}
288
289function vectorQuerySql(): string {
290 return `
291 select
292 id,
293 doc_path as docPath,
294 title,
295 heading,
296 content
297 from chunks
298 order by vec_distance_cosine(embedding, vec_f32(?)) asc
299 limit ?
300 `
301}
302
303function payloadToText(payload: unknown): string {
304 if (typeof payload === `string`) {

Callers 1

hybridSearchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected