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

Method findRelevantContext

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

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