View Source API Reference rag v0.2.1

Modules

Rag

A library to build RAG (Retrieval Augmented Generation) systems in Elixir.

Implementation of Rag.Ai.Provider using the Cohere API.

Implementation of Rag.Ai.Provider using Nx.

Implementation of Rag.Ai.Provider using the OpenAI API.

Behaviour for providers of AI capabilities.

Functions to generate embeddings.

Functions to evaluate generations.

Functions to generate a response and helpers to work with a generation struct.

Functions to load and transform data from various sources and formats.

Functions to retrieve data and transform retrieval results.

Provides information about telemetry events.

Mix Tasks

Generates an evaluation script

Generates a module containing RAG related code

Generates Nx.Servings to run an embedding model and an LLM

Installs the rag library