MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / findRelevantContext

Method findRelevantContext

src/index.ts:1765–1770  ·  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

1763 * @returns Subgraph of relevant nodes and edges
1764 */
1765 async findRelevantContext(
1766 query: string,
1767 options?: FindRelevantContextOptions
1768 ): Promise<Subgraph> {
1769 return this.contextBuilder.findRelevantContext(query, options);
1770 }
1771
1772 /**
1773 * 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