Docs.rs
cognee-embedding-0.1.3
cognee-embedding 0.1.3
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
02 July 2026
Links
Homepage
Repository
crates.io
Source
Owners
GraDKh
Dependencies
async-trait ^0.1.89
normal
cognee-utils ^0.1.3
normal
futures ^0.3
normal
ort ^2.0.0-rc.11
normal
optional
rand ^0.8
normal
reqwest ^0.12
normal
serde ^1
normal
serde_json ^1
normal
sha2 ^0.10
normal
thiserror ^2.0
normal
tokenizers ^0.21
normal
optional
tokio ^1
normal
tracing ^0.1
normal
mockito ^1
dev
serial_test ^3.2
dev
tempfile ^3
dev
Versions
100%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
compute_norm
cognee_
embedding
0.1.3
compute_
norm
Sections
Arguments
Returns
In cognee_
embedding::
utils
cognee_embedding
::
utils
Function
compute_
norm
Copy item path
Source
pub fn compute_norm(vec: &[
f32
]) ->
f32
Expand description
Compute L2 norm of a vector
§
Arguments
vec
- Input vector
§
Returns
L2 norm (magnitude) of the vector