Core#
Core building blocks for RAG and more advanced functionalities, such as agents.
Overview#
A base class that provides an easy way for data to interact with LLMs. |
|
Base building block for building LLM task pipelines. |
|
Container component for composing multiple components, such as Sequential. |
|
This is the default system prompt template used in the LightRAG. |
|
The component that orchestrates model client (Embedding models in particular) and output processors. |
|
Generator is a user-facing orchestration component with a simple and unified interface for LLM prediction. |
|
ModelClient is the protocol and base class for all models(either via APIs or local models) to communicate with components. |
|
Class prompt builder for LightRAG system prompt. |
|
The base class for all retrievers who in particular retrieve documents from a given database. |
|
Extract and convert common string to Python objects. |
|
Tool is LLM's extended capability which is one of the core design pattern of Agent. |
|
The ToolManager manages a list of tools, context, and all ways to execute functions. |
|
Functional data classes to support functional components like Generator, Retriever, and Assistant. |
|
LocalDB to perform in-memory storage and data persistence(pickle or any filesystem) for data models like documents and dialogturn. |
|
Functional interface. |
|
Tokenizer from tiktoken. |