#[repr(u8)]pub enum EdgeKind {
DocToChunk = 0,
ChunkToEmbedding = 1,
ChunkToChunk = 2,
DocToSummary = 3,
DocToDoc = 4,
}Expand description
Types of relationships in the cognitive graph
Variants§
DocToChunk = 0
Document contains a chunk
ChunkToEmbedding = 1
Chunk has an embedding
ChunkToChunk = 2
Semantic link between chunks (e.g., similar content)
DocToSummary = 3
Document has a summary
DocToDoc = 4
Document references another document
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeKind
impl<'de> Deserialize<'de> for EdgeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for EdgeKind
impl Eq for EdgeKind
impl StructuralPartialEq for EdgeKind
Auto Trait Implementations§
impl Freeze for EdgeKind
impl RefUnwindSafe for EdgeKind
impl Send for EdgeKind
impl Sync for EdgeKind
impl Unpin for EdgeKind
impl UnsafeUnpin for EdgeKind
impl UnwindSafe for EdgeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more