Skip to main content

Data structures for AI knowledge bases

Project description

dataknobs-structures

Data structures for AI knowledge bases.

Installation

pip install dataknobs-structures

Features

  • ConditionalDict: Dictionary with conditional value retrieval
  • Document: Document representation with metadata
  • RecordStore: Efficient record storage and retrieval
  • Tree: Tree data structure with various traversal methods

Usage

from dataknobs_structures import Tree, Document

# Create a tree structure
tree = Tree()
tree.add_node("root", "Root Node")
tree.add_node("child1", "Child 1", parent="root")

# Create a document
doc = Document(
    content="Sample document content",
    metadata={"author": "John Doe", "date": "2024-01-01"}
)

License

See LICENSE file in the root repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dataknobs_structures-1.0.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataknobs_structures-1.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file dataknobs_structures-1.0.1.tar.gz.

File metadata

File hashes

Hashes for dataknobs_structures-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3be9f55d5eb1d706bf5d630356988b49423576a9399c22c5760ee68fa2229eb7
MD5 f76bb30d48274046b217fe2abdf223ab
BLAKE2b-256 0f2628e2ac8a9944dfbb241aa7e2cbf163e1dd09cd2cbc2a38f9eb59d73d5393

See more details on using hashes here.

File details

Details for the file dataknobs_structures-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dataknobs_structures-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38a3adeebb92ae26774c0a9038a407218f19b2738b4f605901e1ee7d062fab28
MD5 a59271a4a7731511e01ea54794cff29e
BLAKE2b-256 97e7df7a0442e8f9deb9809e3daf491acab3cae25d56d3cf855d85e9d58d061e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page