Ragex.Embeddings.Helper
(Ragex v0.8.0)
View Source
Helper functions to generate and store embeddings for analyzed code entities.
This module bridges the gap between code analyzers and the embedding system, automatically generating embeddings for modules, functions, and other entities.
Summary
Functions
Generates and stores embeddings for all entities in an analysis result.
Generates embeddings for a batch of entities efficiently.
Generates and stores an embedding for a single function.
Generates and stores an embedding for a single module.
Checks if the embedding system is available and ready.
Functions
Generates and stores embeddings for all entities in an analysis result.
Takes the output from an analyzer and generates embeddings for:
- Modules
- Functions
Returns :ok if embeddings were generated, or {:error, reason} if the
model is not ready or embedding generation fails.
Generates embeddings for a batch of entities efficiently.
Uses batch embedding to process multiple entities at once for better performance.
Generates and stores an embedding for a single function.
Generates and stores an embedding for a single module.
Checks if the embedding system is available and ready.