Docs.rs
sz-orm-vector-1.2.2
sz-orm-vector 1.2.2
Permalink
Docs.rs crate page
MIT
02 August 2026
Links
Homepage
Repository
crates.io
Source
Owners
ljclz
Dependencies
async-trait ^0.1
normal
serde ^1.0
normal
serde_json ^1.0
normal
sz-orm-ai ^1.2.1
normal
thiserror ^2.0
normal
tokio ^1.40
normal
tokio-postgres ^0.7
normal
optional
tokio-test ^0.4
dev
Versions
78.23%
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
MAX_TOP_K
sz_
orm_
vector
1.2.2
sz_orm_vector
Constant
MAX_
TOP_
K
Copy item path
Source
pub const MAX_TOP_K:
usize
= 10_000;
Expand description
M-16 修复:top_k 最大限制
限制 top_k 上限以防止:
大 k 值导致内存爆炸(每个 SearchResult 包含完整向量)
数据库/向量引擎执行超大 k 查询的性能问题
恶意调用方通过 top_k=usize::MAX 触发 OOM