Types¶
RawSearchResult¶
RetrieverResult¶
- class neo4j_graphrag.types.RetrieverResult(*, items, metadata=None)[source]¶
Represents a result returned from a retriever.
- Parameters:
items (list[RetrieverResultItem])
- items¶
A list of retrieved items.
- Type:
RetrieverResultItem¶
LLMResponse¶
RagResultModel¶
- class neo4j_graphrag.generation.types.RagResultModel(*, answer, retriever_result=None)[source]¶
- Parameters:
answer (str)
retriever_result (RetrieverResult | None)
TextChunk¶
TextChunks¶
Neo4jNode¶
Neo4jRelationship¶
Neo4jGraph¶
- class neo4j_graphrag.experimental.components.types.Neo4jGraph(*, nodes=[], relationships=[])[source]¶
Represents a Neo4j graph.
- Parameters:
relationships (list[Neo4jRelationship])
- relationships¶
A list of relationships in the graph.
- Type:
KGWriterModel¶
SchemaProperty¶
SchemaEntity¶
SchemaRelation¶
SchemaConfig¶
LexicalGraphConfig¶
- class neo4j_graphrag.experimental.components.types.LexicalGraphConfig(*, id_prefix='', document_node_label='Document', chunk_node_label='Chunk', chunk_to_document_relationship_type='FROM_DOCUMENT', next_chunk_relationship_type='NEXT_CHUNK', node_to_chunk_relationship_type='FROM_CHUNK', chunk_index_property='index', chunk_text_property='text', chunk_embedding_property='embedding')[source]¶
Configure all labels and property names in the lexical graph.
Neo4jDriverType¶
- class neo4j_graphrag.experimental.pipeline.config.object_config.Neo4jDriverType(root=PydanticUndefined)[source]¶
A model to wrap neo4j.Driver and Neo4jDriverConfig objects.
The parse method always returns a neo4j.Driver.
- Parameters:
root (Driver | Neo4jDriverConfig)
Neo4jDriverConfig¶
LLMType¶
- class neo4j_graphrag.experimental.pipeline.config.object_config.LLMType(root=PydanticUndefined)[source]¶
A model to wrap LLMInterface and LLMConfig objects.
The parse method always returns an object inheriting from LLMInterface.
- Parameters:
root (LLMInterface | LLMConfig)
LLMConfig¶
EmbedderType¶
- class neo4j_graphrag.experimental.pipeline.config.object_config.EmbedderType(root=PydanticUndefined)[source]¶
A model to wrap Embedder and EmbedderConfig objects.
The parse method always returns an object inheriting from Embedder.
- Parameters:
root (Embedder | EmbedderConfig)
EmbedderConfig¶
ComponentType¶
- class neo4j_graphrag.experimental.pipeline.config.object_config.ComponentType(root=PydanticUndefined)[source]¶
- Parameters:
root (Component | ComponentConfig)