MCPcopy
hub / github.com/colbymchenry/codegraph / findRelevantContext

Method findRelevantContext

src/index.ts:1183–1188  ·  view source on GitHub ↗

* Find relevant subgraph for a query * * Combines semantic search with graph traversal to find the most * relevant nodes and their relationships for a given query. * * @param query - Natural language query describing the task * @param options - Search and traversal options * @re

(
    query: string,
    options?: FindRelevantContextOptions
  )

Source from the content-addressed store, hash-verified

1181 * @returns Subgraph of relevant nodes and edges
1182 */
1183 async findRelevantContext(
1184 query: string,
1185 options?: FindRelevantContextOptions
1186 ): Promise<Subgraph> {
1187 return this.contextBuilder.findRelevantContext(query, options);
1188 }
1189
1190 /**
1191 * Build context for a task

Callers 3

context.test.tsFile · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by 1

runFunction · 0.36