Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 47 additions & 121 deletions crates/Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions crates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ exclude = ["khive-merge"]
# keep this exclusion from members.

[workspace.package]
version = "0.7.0"
version = "0.7.1"
edition = "2021"
# lattice-embed and lattice-fann 0.6 require Rust 1.93, setting the workspace MSRV.
# lattice-embed and lattice-fann 0.7 require Rust 1.93, setting the workspace MSRV.
# The previous 1.91 floor came from floor_char_boundary use (issue #398).
rust-version = "1.93.0"
authors = ["Ocean <ocean@lionagi.ai>"]
Expand Down Expand Up @@ -83,8 +83,8 @@ chrono = { version = "0.4", default-features = false, features = ["serde", "cloc
async-trait = "0.1"
clap = { version = "4.5", features = ["derive", "env"] }
dotenvy = "0.15"
lattice-embed = "0.6.0"
lattice-fann = "0.6.0"
lattice-embed = "0.7.0"
lattice-fann = "0.7.0"
parking_lot = "0.12"
rand = "0.8"
rand_distr = "0.4"
Expand Down
124 changes: 19 additions & 105 deletions crates/khive-merge/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/khive-pack-kg/src/apply_worker/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use async_trait::async_trait;
use khive_runtime::{EmbedderProvider, KhiveRuntime, Namespace, VerbRegistryBuilder};
use khive_storage::types::{PageRequest, SqlStatement, SqlValue};
use khive_types::{Id128, NoteDraft, ProposalChangeset, ProposalCreatedPayload};
use lattice_embed::{EmbedError, EmbeddingModel, EmbeddingService, MAX_TEXT_CHARS};
use lattice_embed::{EmbedError, EmbeddingModel, EmbeddingService, MAX_TEXT_BYTES};
use uuid::Uuid;

struct TruncationService;
Expand Down Expand Up @@ -300,7 +300,7 @@ async fn apply_worker_returns_atomic_update_truncation_report() {
id: Id128::from_u128(entity.id.as_u128()),
patch: khive_types::ProposalEntityPatch {
name: None,
description: Some(Some("x".repeat(MAX_TEXT_CHARS + 1))),
description: Some(Some("x".repeat(MAX_TEXT_BYTES + 1))),
properties: None,
tags: None,
},
Expand Down
8 changes: 4 additions & 4 deletions crates/khive-pack-kg/src/handlers/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ async fn create_dispatch_emits_embedding_truncation_advisory() {
json!({
"kind": "concept",
"name": "warning target",
"description": "x".repeat(lattice_embed::MAX_TEXT_CHARS),
"description": "x".repeat(lattice_embed::MAX_TEXT_BYTES),
"skip_dedup_check": true,
}),
)
Expand All @@ -1731,14 +1731,14 @@ async fn create_dispatch_emits_embedding_truncation_advisory() {
json!({
"kind": "entity",
"id": truncated["id"],
"description": "y".repeat(lattice_embed::MAX_TEXT_CHARS + 1),
"description": "y".repeat(lattice_embed::MAX_TEXT_BYTES + 1),
}),
)
.await
.expect("over-limit update");
assert_eq!(
updated["description"].as_str().map(str::len),
Some(lattice_embed::MAX_TEXT_CHARS + 1),
Some(lattice_embed::MAX_TEXT_BYTES + 1),
"the stored and FTS-indexed source remains complete"
);
assert!(
Expand Down Expand Up @@ -1785,7 +1785,7 @@ async fn create_dispatch_uses_registry_snapshot_taken_before_embedding() {
"create",
json!({
"kind": "concept",
"name": "x".repeat(lattice_embed::MAX_TEXT_CHARS),
"name": "x".repeat(lattice_embed::MAX_TEXT_BYTES),
"skip_dedup_check": true,
}),
);
Expand Down
4 changes: 2 additions & 2 deletions crates/khive-pack-knowledge/tests/fixes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@ mod edit_inline_reembed {
use async_trait::async_trait;
use khive_runtime::{AllowAllGate, BackendId, EmbedderProvider, RuntimeConfig};
use khive_types::Namespace;
use lattice_embed::{EmbedError, EmbeddingModel, EmbeddingService, MAX_TEXT_CHARS};
use lattice_embed::{EmbedError, EmbeddingModel, EmbeddingService, MAX_TEXT_BYTES};
use std::sync::Arc;

const MODEL_KEY: &str = "all-minilm-l6-v2";
Expand Down Expand Up @@ -3351,7 +3351,7 @@ mod edit_inline_reembed {
"id": "edit-truncation-report",
"sections": [{
"section_type": "overview",
"content": format!("{}tail", "x".repeat(MAX_TEXT_CHARS + 1))
"content": format!("{}tail", "x".repeat(MAX_TEXT_BYTES + 1))
}]
}),
)
Expand Down
Loading
Loading