Expand description
Embedding generation and semantic search for code objects.
Re-exports shared types from nusy-graph-query and adds codegraph-specific
functions for embedding CodeNodes and attaching embeddings to RecordBatches.
Structs§
- Hash
Embedding Provider - Deterministic hash-based embedding provider for codegraph (768-dim).
- Search
Result - A search result from semantic search.
Enums§
- Embedding
Error - Errors from embedding operations.
Traits§
- Embedding
Provider - Trait for embedding providers.
Functions§
- attach_
embeddings - Update a CodeNodes RecordBatch with embedding vectors.
- cosine_
similarity - Cosine similarity between two vectors.
- embed_
nodes - Embed all CodeNodes that have embeddable text.
- node_
to_ embed_ text - Build the embeddable text for a CodeNode.
- semantic_
search - Semantic search over embedded CodeNodes.