Expand description
Semantic Document Graph
Graph structure for document relationships based on semantic similarity. Nodes represent documents with embeddings; edges encode similarity, citation, or cluster-membership relationships.
Structs§
- DocGraph
Edge - A directed edge in the semantic document graph.
- DocGraph
Node - A node in the semantic document graph.
- Document
Graph Stats - Summary statistics for the graph.
- Semantic
Document Graph - Graph of document relationships based on semantic similarity and explicit annotations (citations, cluster membership).
Enums§
- Edge
Kind - Kind of relationship between two documents.
Functions§
- cosine_
sim - Cosine similarity between two vectors. Returns 0.0 when either vector has zero magnitude or the lengths differ.