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.0.tar.gz (10.3 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.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dataknobs_structures-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a73d6f49451d68f0b7641f5dde93aece6f8238df28185c6f18441fbc3e1c26ec
MD5 99ccee0836feea08d8ce4902e07d8f2a
BLAKE2b-256 f65f563383b54b67b8b4796ffd742b6d89d44835eda965999f6bf851f630d739

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dataknobs_structures-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 019bf6fd82cfd972431077d1e56821597bcc14f5dc4487e7f6b4017af8ec1d65
MD5 4bcc3a339935ab9e5d58fb0468711040
BLAKE2b-256 5620b94b7dd83b64b6bc8df6efeacdb09759892ca443c01935c2b93a44abae02

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