Core Module

The rakam_systems.core module defines the core structures and classes such as VSFile, Node, and NodeMetadata that are essential for managing and processing data in Rakam Systems.

Classes

rakam_systems.core.VSFile(file_path)

A data source to be processed.

rakam_systems.core.Node(content, metadata)

A node with content and associated metadata.

rakam_systems.core.NodeMetadata(...[, custom])

VSFile

class rakam_systems.core.VSFile(file_path: str)

Bases: object

A data source to be processed. Its nodes will become entries in the VectorStores.

Represents a file in the vector store, containing metadata and nodes extracted from the content of the file.

Node

class rakam_systems.core.Node(content: str, metadata: NodeMetadata)

Bases: object

A node with content and associated metadata.

Represents a node with content and associated metadata, which is stored in the vector store.

NodeMetadata

class rakam_systems.core.NodeMetadata(source_file_uuid: str, position: int, custom: dict | None = None)

Bases: object

Holds metadata for a node, including the file’s UUID, position within the file, and any custom information.