Constants
gllm_retrieval.retriever.graph_retriever.constants
Constants used in graph retriever.
GraphitiRetrieverConfig
Configuration constants for Graphiti retriever.
DEFAULT_NUM_RESULTS = 5
class-attribute
instance-attribute
GraphitiRetrieverSeparators
Separator constants for Graphiti retriever STRING return type formatting.
EPISODE = '\n\n'
class-attribute
instance-attribute
EPISODES = '-----Episodes-----'
class-attribute
instance-attribute
FACT = '\n\n'
class-attribute
instance-attribute
FACTS = '-----Facts(KG)-----'
class-attribute
instance-attribute
SECTION = '\n\n'
class-attribute
instance-attribute
LightRAGRetrievalSection
Bases: StrEnum
Enum for LightRAG retrieval section.
DOCUMENT_CHUNKS = '-----Document Chunks(DC)-----'
class-attribute
instance-attribute
ENTITIES = '-----Entities(KG)-----'
class-attribute
instance-attribute
RELATIONSHIPS = '-----Relationships(KG)-----'
class-attribute
instance-attribute
ReturnType
Bases: StrEnum
Enum for return type of retrieve method.
The return type of retrieve method can be one of the following
- CHUNKS: List of Chunk objects. Example: [Chunk(id="1", content="Text content", metadata={...}), ...]
- STRINGS: List of content strings from chunks. Example: ["Text content 1", "Text content 2", ...]
- DICT: Dictionary representation of the result. Example: {"chunks": [...], "nodes": [...], "edges": [...]}
- STRING: Raw result string output. Useful when the library already includes a response synthesis process. Example: "Based on the information provided in the knowledge graph, the answer to the query is ..."