Liking cljdoc? Tell your friends :D

hive-chroma.helpers

Shared utility functions for Chroma operations.

Shared utility functions for Chroma operations.
raw docstring

content-hashclj

(content-hash content)

Compute SHA-256 hash of content for deduplication.

Compute SHA-256 hash of content for deduplication.
sourceraw docstring

expired?clj

(expired? metadata)

Check if an entry has expired based on :expires metadata.

Check if an entry has expired based on :expires metadata.
sourceraw docstring

generate-idclj

(generate-id)

Generate a unique ID for memory entries (timestamp + random hex).

Generate a unique ID for memory entries (timestamp + random hex).
sourceraw docstring

iso-timestampclj

(iso-timestamp)

Return current ISO 8601 timestamp.

Return current ISO 8601 timestamp.
sourceraw docstring

join-tagsclj

(join-tags tags)

Join tags vector to comma-separated string.

Join tags vector to comma-separated string.
sourceraw docstring

memory-to-documentclj

(memory-to-document {:keys [content type tags]})

Convert memory entry to searchable document string.

Convert memory entry to searchable document string.
sourceraw docstring

metadata->entryclj

(metadata->entry {:keys [id document metadata]})

Convert Chroma metadata format to domain entry map.

Convert Chroma metadata format to domain entry map.
sourceraw docstring

metadata-defaultsclj

Default values for entry metadata fields.

Default values for entry metadata fields.
sourceraw docstring

normalize-durationclj

(normalize-duration duration)

Normalize duration string to canonical value.

Normalize duration string to canonical value.
sourceraw docstring

parse-zoned-datetimeclj

(parse-zoned-datetime s)

Parse ISO string to ZonedDateTime, returns nil on failure.

Parse ISO string to ZonedDateTime, returns nil on failure.
sourceraw docstring

serialize-contentclj

(serialize-content content)

Serialize content to string for storage.

Serialize content to string for storage.
sourceraw docstring

split-tagsclj

(split-tags tags-str)

Split comma-separated tags string into vector.

Split comma-separated tags string into vector.
sourceraw docstring

time-between?clj

(time-between? time start end)

Check if time is between start (exclusive) and end (exclusive).

Check if time is between start (exclusive) and end (exclusive).
sourceraw docstring

try-parse-jsonclj

(try-parse-json s)

Parse JSON string, return original on failure.

Parse JSON string, return original on failure.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close