Crate anda_db_schema

Source

Structs§

Document
Document represents a single document in the Anda DB.
DocumentOwned
DocumentOwned represents a standalone document without schema reference. It can be serialized and deserialized for storage or transmission.
FieldEntry
Field entry definition for Anda DB
Map
Re-export Map from serde_json Represents a JSON key/value type.
Resource
Represents a resource for AI Agents. It can be a file, a URL, or any other type of resource.
Schema
Schema represents Anda DB document schema definition. It contains a collection of fields and their indexes.
SchemaBuilder
SchemaBuilder is used to construct a Schema instance. It provides methods to add fields and build the final schema.
bf16
Re-export bf16 from half crate A 16-bit floating point type implementing the bfloat16 format.

Enums§

FieldType
Field type definitions for Anda DB
FieldValue
Field value definitions for Anda DB
SchemaError
Schema related errors

Functions§

validate_field_name
Validate a field name
vector_from_f32
Convert a Vec to Vector
vector_from_f64
Convert a Vec to Vector

Type Aliases§

BoxError
A type alias for a boxed error that is thread-safe and sendable across threads. This is commonly used as a return type for functions that can return various error types.
Cbor
Type alias for ciborium::Value
DocumentId
Type alias for a document identifier.
Fe
Type alias for FieldEntry
Ft
Type alias for FieldType
Fv
Type alias for FieldValue
IndexedFieldValues
Type alias for BTreeMap<usize, FieldValue>, used to store indexed field values
Json
Type alias for serde_json::Value
Vector
Type alias for Vec

Derive Macros§

AndaDBSchema
A derive macro that generates a schema() function for structs.
FieldTyped
A derive macro that generates a field_type() function for structs.