Documentation
¶
Index ¶
- func HydrateSubgraph(ctx context.Context, store storage.Store, kbID string, sg graph.SubgraphResult) (*domain.Subgraph, error)
- func NewSearcher(store storage.Store, decayHalfLife float64, embedFn search.EmbedderFactory) *search.Searcher
- func SplitCSV(s string) []string
- type HTTPServer
- type MCPServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HydrateSubgraph ¶
func HydrateSubgraph(ctx context.Context, store storage.Store, kbID string, sg graph.SubgraphResult) (*domain.Subgraph, error)
HydrateSubgraph enriches a raw SubgraphResult with entity and relation metadata from storage. Used by MCP, HTTP, and CLI graph traversal handlers.
func NewSearcher ¶
func NewSearcher( store storage.Store, decayHalfLife float64, embedFn search.EmbedderFactory, ) *search.Searcher
NewSearcher is a convenience to build a Searcher from components (used by both CLI and MCP server).
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer serves the memex REST API.
func NewHTTPServer ¶
func NewHTTPServer( store storage.Store, sched *ingestion.Scheduler, searcher *search.Searcher, lcManager *lifecycle.Manager, consolidator *lifecycle.Consolidator, ) *HTTPServer
NewHTTPServer creates a new HTTP server with all routes registered.
func (*HTTPServer) Handler ¶
func (s *HTTPServer) Handler() http.Handler
Handler returns the http.Handler for use with httptest or custom servers.
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer wraps all dependencies needed by MCP tool handlers.
Click to show internal directories.
Click to hide internal directories.