Models¶
pgraf.models
¶
Edge
¶
Embedding
¶
Bases: BaseModel
An embedding is a fixed-length vector of floating-point numbers that represents the semantic meaning of a document chunk in a high-dimensional space, enabling similarity search operations for retrieving contextually relevant information in RAG systems.
Source code in pgraf/models.py
validate_value_length(value)
classmethod
¶
Validate that the embedding value has exactly 384 dimensions.
Source code in pgraf/models.py
Node
¶
Bases: _GraphModel
A node represents an entity or object within the graph model.