repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/command_status.rs
default-plugins/sequence/src/state/command_status.rs
use zellij_tile::prelude::*; #[derive(Debug, Clone)] pub enum CommandStatus { Exited(Option<i32>, Option<PaneId>), Running(Option<PaneId>), Pending, Interrupted(Option<PaneId>), } impl CommandStatus { pub fn get_pane_id(&self) -> Option<PaneId> { match self { CommandStatus::Exi...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/execution.rs
default-plugins/sequence/src/state/execution.rs
use crate::path_formatting::format_cwd; use crate::state::{ChainType, CommandEntry, CommandStatus}; use std::collections::BTreeMap; use std::path::PathBuf; use std::time::Duration; use zellij_tile::prelude::*; pub struct Execution { pub all_commands: Vec<CommandEntry>, pub current_running_command_index: usize,...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/positioning.rs
default-plugins/sequence/src/state/positioning.rs
use zellij_tile::prelude::*; pub fn reposition_plugin_for_sequence( plugin_id: u32, total_cols: usize, total_rows: usize, total_commands: usize, ) { // Width: 30% of viewport let width = std::cmp::max((total_cols * 30) / 100, 50); // Height: UI overhead + commands, capped at 25% of viewpor...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/ui/truncation.rs
default-plugins/sequence/src/ui/truncation.rs
use unicode_width::UnicodeWidthStr; const BASE_SEPARATOR_WIDTH: usize = 2; pub fn calculate_available_cmd_width( cols: usize, folder_width: usize, overflow_indicator: Option<&String>, chain_width: usize, status_width: usize, ) -> usize { let mut separator_width = BASE_SEPARATOR_WIDTH; if o...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/ui/text_input.rs
default-plugins/sequence/src/ui/text_input.rs
use zellij_tile::prelude::*; const MAX_UNDO_STACK_SIZE: usize = 100; /// Action returned by TextInput after handling a key event #[derive(Debug, Clone, PartialEq)] #[cfg_attr(test, derive(Eq))] pub enum InputAction { /// Continue editing Continue, /// User pressed Enter to submit Submit, /// User ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/ui/fuzzy_complete.rs
default-plugins/sequence/src/ui/fuzzy_complete.rs
use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::FuzzyMatcher; use std::collections::BTreeMap; use std::fs; use std::path::PathBuf; /// Result of a fuzzy completion operation #[derive(Debug, Clone)] pub struct CompletionResult { pub completed_text: String, pub score: i64, pub is_directory: bool, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/ui/layout_calculations.rs
default-plugins/sequence/src/ui/layout_calculations.rs
pub fn calculate_viewport( total_commands: usize, max_visible: usize, selected_index: Option<usize>, running_index: usize, ) -> (usize, usize, usize, usize) { if total_commands <= max_visible { return (0, total_commands, 0, 0); } let focus_index = selected_index.unwrap_or(running_in...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/ui/mod.rs
default-plugins/sequence/src/ui/mod.rs
pub mod components; pub mod fuzzy_complete; pub mod layout_calculations; pub mod text_input; pub mod truncation;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/ui/components.rs
default-plugins/sequence/src/ui/components.rs
use crate::path_formatting::format_cwd; use crate::state::{CommandStatus, State}; use crate::ui::truncation::{calculate_available_cmd_width, truncate_middle}; use std::path::PathBuf; use zellij_tile::prelude::*; const SPINNER_FRAMES: &[&str] = &["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧"]; const HELP_RUNNING_WITH_SELECTI...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/strider/src/search_view.rs
default-plugins/strider/src/search_view.rs
use crate::shared::{calculate_list_bounds, render_list_tip}; use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::FuzzyMatcher; use pretty_bytes::converter::convert as pretty_bytes; use unicode_width::UnicodeWidthStr; use zellij_tile::prelude::*; use crate::file_list_view::FsEntry; #[derive(Default, Debug)] pub...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/strider/src/state.rs
default-plugins/strider/src/state.rs
use crate::file_list_view::{FileListView, FsEntry}; use crate::search_view::SearchView; use crate::shared::calculate_list_bounds; use std::{ collections::BTreeMap, path::{Path, PathBuf}, }; use zellij_tile::prelude::*; #[derive(Default)] pub struct State { pub file_list_view: FileListView, pub search_v...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/strider/src/file_list_view.rs
default-plugins/strider/src/file_list_view.rs
use crate::shared::{calculate_list_bounds, render_list_tip}; use crate::state::refresh_directory; use pretty_bytes::converter::convert as pretty_bytes; use std::collections::HashMap; use std::path::PathBuf; use unicode_width::UnicodeWidthStr; use zellij_tile::prelude::*; #[derive(Debug, Clone)] pub struct FileListView...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/strider/src/main.rs
default-plugins/strider/src/main.rs
mod file_list_view; mod search_view; mod shared; mod state; use shared::{render_current_path, render_instruction_line, render_search_term}; use state::{refresh_directory, State}; use std::collections::BTreeMap; use std::path::PathBuf; use zellij_tile::prelude::*; register_plugin!(State); impl ZellijPlugin for State ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/strider/src/shared.rs
default-plugins/strider/src/shared.rs
use std::path::PathBuf; use unicode_width::UnicodeWidthStr; use zellij_tile::prelude::*; pub fn render_instruction_line(y: usize, max_cols: usize) { if max_cols > 78 { let text = "Help: go back with <Ctrl c>, go to root with /, <Ctrl e> - toggle hidden files"; let text = Text::new(text) ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/tooltip.rs
default-plugins/compact-bar/src/tooltip.rs
use crate::keybind_utils::KeybindProcessor; use zellij_tile::prelude::*; pub struct TooltipRenderer<'a> { mode_info: &'a ModeInfo, } impl<'a> TooltipRenderer<'a> { pub fn new(mode_info: &'a ModeInfo) -> Self { Self { mode_info } } pub fn render(&self, rows: usize, cols: usize) { let c...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/action_types.rs
default-plugins/compact-bar/src/action_types.rs
use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum ActionType { MoveFocus, MovePaneWithDirection, MovePaneWithoutDirection, ResizeIncrease, ResizeDecrease, ResizeAny, Search, NewPaneWithDirection, NewPaneWith...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/keybind_utils.rs
default-plugins/compact-bar/src/keybind_utils.rs
use crate::action_types::ActionType; use std::collections::HashSet; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; pub struct KeybindProcessor; impl KeybindProcessor { /// Find predetermined actions based on predicates while maintaining order pub fn find_predetermined_actions<F>( ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/clipboard_utils.rs
default-plugins/compact-bar/src/clipboard_utils.rs
use crate::LinePart; use zellij_tile::prelude::*; pub fn text_copied_hint(copy_destination: CopyDestination) -> LinePart { let hint = match copy_destination { CopyDestination::Command => "Text piped to external command", #[cfg(not(target_os = "macos"))] CopyDestination::Primary => "Text cop...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/main.rs
default-plugins/compact-bar/src/main.rs
mod action_types; mod clipboard_utils; mod keybind_utils; mod line; mod tab; mod tooltip; use std::cmp::{max, min}; use std::collections::BTreeMap; use std::convert::TryInto; use tab::get_tab_to_focus; use zellij_tile::prelude::*; use crate::clipboard_utils::{system_clipboard_error, text_copied_hint}; use crate::lin...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/line.rs
default-plugins/compact-bar/src/line.rs
use ansi_term::ANSIStrings; use unicode_width::UnicodeWidthStr; use crate::{LinePart, TabRenderData, ARROW_SEPARATOR}; use zellij_tile::prelude::*; use zellij_tile_utils::style; pub fn tab_line( mode_info: &ModeInfo, tab_data: TabRenderData, cols: usize, toggle_tooltip_key: Option<String>, tooltip...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/compact-bar/src/tab.rs
default-plugins/compact-bar/src/tab.rs
use crate::{line::tab_separator, LinePart}; use ansi_term::{ANSIString, ANSIStrings}; use unicode_width::UnicodeWidthStr; use zellij_tile::prelude::*; use zellij_tile_utils::style; fn cursors<'a>( focused_clients: &'a [ClientId], colors: MultiplayerColors, ) -> (Vec<ANSIString<'a>>, usize) { // cursor sect...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/settings.rs
src/settings.rs
use std::borrow::Cow; use std::{env, io}; use api::grpc::transport_channel_pool::{ DEFAULT_CONNECT_TIMEOUT, DEFAULT_GRPC_TIMEOUT, DEFAULT_POOL_SIZE, }; use collection::operations::validation; use collection::shards::shard::PeerId; use common::flags::FeatureFlags; use config::{Config, ConfigError, Environment, File...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/wal_inspector.rs
src/wal_inspector.rs
use std::env; use std::path::Path; use collection::operations::OperationWithClockTag; use shard::wal::SerdeWal; use storage::content_manager::consensus::consensus_wal::ConsensusOpWal; use storage::content_manager::consensus_ops::ConsensusOperations; use wal::WalOptions; /// Executable to inspect the content of a writ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/issues_setup.rs
src/issues_setup.rs
use std::time::Duration; use collection::events::{CollectionDeletedEvent, IndexCreatedEvent, SlowQueryEvent}; use collection::problems::unindexed_field; use storage::issues_subscribers::UnindexedFieldSubscriber; use crate::settings::Settings; pub fn setup_subscribers(settings: &Settings) { settings .serv...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/greeting.rs
src/greeting.rs
use std::cmp::min; use std::env; use std::io::{IsTerminal, stdout}; use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; use api::rest::models::get_git_commit_id; use colored::{Color, ColoredString, Colorize}; use crate::settings::Settings; fn paint_red(text: &str, true_color: bool) -> ColoredString { if true_color { ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/segment_inspector.rs
src/segment_inspector.rs
use std::path::Path; use std::sync::atomic::AtomicBool; use clap::Parser; use common::counter::hardware_counter::HardwareCounterCell; use segment::entry::entry_point::SegmentEntry; use segment::segment_constructor::load_segment; use segment::types::PointIdType; #[derive(Parser, Debug)] #[command(version, about)] stru...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/snapshots.rs
src/snapshots.rs
use std::io::BufReader; use std::path::{Path, PathBuf}; use collection::collection::Collection; use collection::shards::shard::PeerId; use fs_err as fs; use fs_err::File; use log::info; use segment::common::validate_snapshot_archive::open_snapshot_archive_with_validation; use storage::content_manager::alias_mapping::A...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/wal_pop.rs
src/wal_pop.rs
use std::env; use std::path::Path; use wal::Wal; fn main() { let args: Vec<String> = env::args().collect(); let wal_path = Path::new(&args[1]); let mut wal = Wal::open(wal_path).expect("Can't open consensus WAL"); let last_index = wal.last_index(); eprintln!("last_index = {last_index}"); w...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/startup.rs
src/startup.rs
//! Contains a collection of functions that are called at the start of the program. use std::backtrace::Backtrace; use std::panic; use std::path::PathBuf; use fs_err as fs; use crate::common::error_reporting::ErrorReporter; const DEFAULT_INITIALIZED_FILE: &str = ".qdrant-initialized"; fn get_init_file_path() -> Pa...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/main.rs
src/main.rs
mod actix; mod common; mod consensus; mod greeting; mod issues_setup; mod migrations; mod settings; mod snapshots; mod startup; mod tonic; mod tracing; use std::io::Error; use std::path::Path; use std::sync::Arc; use std::thread; use std::thread::JoinHandle; use std::time::Duration; use ::common::budget::{ResourceBud...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/consensus.rs
src/consensus.rs
use std::collections::{HashMap, HashSet}; use std::str::FromStr; use std::sync::{Arc, mpsc}; use std::thread::JoinHandle; use std::time::{Duration, Instant}; use std::{cmp, fmt, thread}; use anyhow::{Context as _, anyhow}; use api::grpc::dynamic_channel_pool::make_grpc_channel; use api::grpc::qdrant::raft_client::Raft...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
true
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/schema_generator.rs
src/schema_generator.rs
#![allow(dead_code)] use api::rest::models::{CollectionsResponse, ShardKeysResponse, Usage, VersionInfo}; use api::rest::schema::PointInsertOperations; use api::rest::{ FacetRequest, FacetResponse, QueryGroupsRequest, QueryRequest, QueryRequestBatch, QueryResponse, Record, ScoredPoint, SearchMatrixOffsetsRespo...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tracing/config.rs
src/tracing/config.rs
use std::collections::HashSet; use serde::{Deserialize, Serialize}; use tracing_subscriber::fmt; use super::*; #[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)] #[serde(default)] pub struct LoggerConfig { #[serde(flatten)] pub default: default::Config, #[serde(default)] pub on_d...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tracing/test.rs
src/tracing/test.rs
use std::collections::HashSet; use serde_json::json; use super::*; #[test] fn deserialize_logger_config() { let json = json!({ "log_level": "debug", "span_events": ["new", "close"], "color": true, "on_disk": { "enabled": true, "log_file": "/logs/qdrant", ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tracing/on_disk.rs
src/tracing/on_disk.rs
use std::collections::HashSet; use std::io; use std::sync::Mutex; use anyhow::Context as _; use common::ext::OptionExt; use fs_err as fs; use serde::{Deserialize, Serialize}; use tracing_subscriber::{Layer, fmt, registry}; use super::*; #[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)] #[serde(...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tracing/default.rs
src/tracing/default.rs
use std::collections::HashSet; use common::ext::OptionExt; use serde::{Deserialize, Serialize}; use tracing_subscriber::{Layer, fmt, registry}; use super::*; #[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)] #[serde(default)] pub struct Config { pub log_level: Option<String>, pub span_e...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tracing/mod.rs
src/tracing/mod.rs
pub mod config; pub mod default; pub mod handle; pub mod on_disk; #[cfg(test)] mod test; use std::fmt::Write as _; use std::str::FromStr as _; use tracing_subscriber::prelude::*; use tracing_subscriber::{filter, reload}; pub use self::config::LoggerConfig; pub use self::handle::LoggerHandle; const DEFAULT_LOG_LEVE...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tracing/handle.rs
src/tracing/handle.rs
use std::sync::Arc; use tokio::sync::RwLock; use tracing_subscriber::{Registry, layer, reload}; use super::*; #[derive(Clone)] pub struct LoggerHandle { config: Arc<RwLock<config::LoggerConfig>>, default: DefaultLoggerReloadHandle, on_disk: OnDiskLoggerReloadHandle, } #[rustfmt::skip] // `rustfmt` forma...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/tonic_telemetry.rs
src/tonic/tonic_telemetry.rs
use std::sync::Arc; use std::task::{Context, Poll}; use futures_util::future::BoxFuture; use tower::Service; use tower_layer::Layer; use crate::common::telemetry_ops::requests_telemetry::{ TonicTelemetryCollector, TonicWorkerTelemetryCollector, }; #[derive(Clone)] pub struct TonicTelemetryService<T> { servic...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/auth.rs
src/tonic/auth.rs
use std::sync::Arc; use std::task::{Context, Poll}; use futures::future::BoxFuture; use storage::rbac::Access; use tonic::Status; use tonic::body::BoxBody; use tower::{Layer, Service}; use crate::common::auth::{AuthError, AuthKeys}; type Request = tonic::codegen::http::Request<tonic::transport::Body>; type Response ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/mod.rs
src/tonic/mod.rs
mod api; mod auth; mod logging; mod tonic_telemetry; use std::io; use std::net::{IpAddr, SocketAddr}; use std::sync::Arc; use std::time::Duration; use ::api::grpc::QDRANT_DESCRIPTOR_SET; use ::api::grpc::grpc_health_v1::health_check_response::ServingStatus; use ::api::grpc::grpc_health_v1::health_server::{Health, Hea...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/logging.rs
src/tonic/logging.rs
use std::task::{Context, Poll}; use futures_util::future::BoxFuture; use tonic::Code; use tonic::body::BoxBody; use tonic::codegen::http::Response; use tower::Service; use tower_layer::Layer; #[derive(Clone)] pub struct LoggingMiddleware<T> { inner: T, } #[derive(Clone)] pub struct LoggingMiddlewareLayer; impl ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/query_common.rs
src/tonic/api/query_common.rs
use std::time::{Duration, Instant}; use api::conversions::json::json_path_from_proto; use api::grpc::qdrant::{ BatchResult, CoreSearchPoints, CountPoints, CountResponse, DiscoverBatchResponse, DiscoverPoints, DiscoverResponse, FacetCounts, FacetResponse, GetPoints, GetResponse, GroupsResult, QueryBatchResp...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
true
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/collections_internal_api.rs
src/tonic/api/collections_internal_api.rs
use std::sync::Arc; use std::time::{Duration, Instant}; use api::grpc::qdrant::collections_internal_server::CollectionsInternal; use api::grpc::qdrant::{ CollectionOperationResponse, GetCollectionInfoRequestInternal, GetCollectionInfoResponse, GetShardRecoveryPointRequest, GetShardRecoveryPointResponse, Initia...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/mod.rs
src/tonic/api/mod.rs
pub mod collections_api; pub mod collections_internal_api; pub mod points_api; pub mod points_internal_api; pub mod raft_api; pub mod snapshots_api; mod collections_common; mod query_common; mod update_common; use collection::operations::validation; use tonic::Status; use validator::Validate; /// Validate the given ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/collections_api.rs
src/tonic/api/collections_api.rs
use std::sync::Arc; use std::time::{Duration, Instant}; use api::grpc::qdrant::collections_server::Collections; use api::grpc::qdrant::{ ChangeAliases, CollectionClusterInfoRequest, CollectionClusterInfoResponse, CollectionExistsRequest, CollectionExistsResponse, CollectionOperationResponse, CreateCollecti...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/raft_api.rs
src/tonic/api/raft_api.rs
use api::grpc::qdrant::raft_server::Raft; use api::grpc::qdrant::{ AddPeerToKnownMessage, AllPeers, Peer, PeerId, RaftMessage as RaftMessageBytes, Uri as UriStr, }; use itertools::Itertools; use raft::eraftpb::Message as RaftMessage; use storage::content_manager::consensus_manager::ConsensusStateRef; use storage::c...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/points_api.rs
src/tonic/api/points_api.rs
use std::sync::Arc; use std::time::{Duration, Instant}; use api::grpc::Usage; use api::grpc::qdrant::points_server::Points; use api::grpc::qdrant::{ ClearPayloadPoints, CountPoints, CountResponse, CreateFieldIndexCollection, DeleteFieldIndexCollection, DeletePayloadPoints, DeletePointVectors, DeletePoints, ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/collections_common.rs
src/tonic/api/collections_common.rs
use std::time::Instant; use api::grpc::qdrant::{GetCollectionInfoRequest, GetCollectionInfoResponse}; use collection::shards::shard::ShardId; use storage::content_manager::toc::TableOfContent; use storage::rbac::Access; use tonic::{Response, Status}; use crate::common::collections::do_get_collection; pub async fn ge...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/points_internal_api.rs
src/tonic/api/points_internal_api.rs
use std::any; use std::str::FromStr; use std::sync::Arc; use std::time::{Duration, Instant}; use api::grpc::HardwareUsage; use api::grpc::qdrant::points_internal_server::PointsInternal; use api::grpc::qdrant::{ ClearPayloadPointsInternal, CoreSearchBatchPointsInternal, CountPointsInternal, CountResponse, Creat...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/update_common.rs
src/tonic/api/update_common.rs
use std::sync::Arc; use std::time::Instant; use api::conversions::json::{json_path_from_proto, proto_to_payloads}; use api::grpc; use api::grpc::qdrant::payload_index_params::IndexParams; use api::grpc::qdrant::points_update_operation::{ClearPayload, Operation, PointStructList}; use api::grpc::qdrant::{ ClearPaylo...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
true
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/tonic/api/snapshots_api.rs
src/tonic/api/snapshots_api.rs
use std::sync::Arc; use std::time::Instant; use api::grpc::qdrant::shard_snapshots_server::ShardSnapshots; use api::grpc::qdrant::snapshots_server::Snapshots; use api::grpc::qdrant::{ CreateFullSnapshotRequest, CreateShardSnapshotRequest, CreateSnapshotRequest, CreateSnapshotResponse, DeleteFullSnapshotRequest...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_reporting.rs
src/common/telemetry_reporting.rs
use std::sync::Arc; use std::time::Duration; use common::defaults::APP_USER_AGENT; use common::types::{DetailsLevel, TelemetryDetail}; use reqwest::Client; use segment::common::anonymize::Anonymize; use storage::content_manager::errors::StorageResult; use storage::rbac::Access; use tokio::sync::Mutex; use super::tele...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/pyroscope_state.rs
src/common/pyroscope_state.rs
#[cfg(target_os = "linux")] pub mod pyro { use pyroscope::pyroscope::PyroscopeAgentRunning; use pyroscope::{PyroscopeAgent, PyroscopeError}; use pyroscope_pprofrs::{PprofConfig, pprof_backend}; use crate::common::debugger::PyroscopeConfig; pub struct PyroscopeState { pub config: Pyroscope...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/http_client.rs
src/common/http_client.rs
use std::path::Path; use std::{io, result}; use common::defaults::APP_USER_AGENT; use fs_err as fs; use reqwest::header::{HeaderMap, HeaderValue, InvalidHeaderValue}; use storage::content_manager::errors::StorageError; use super::auth::HTTP_HEADER_API_KEY; use crate::settings::{Settings, TlsConfig}; #[derive(Clone)]...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/error_reporting.rs
src/common/error_reporting.rs
use std::time::Duration; use common::defaults::APP_USER_AGENT; pub struct ErrorReporter; impl ErrorReporter { fn get_url() -> String { if cfg!(debug_assertions) { "https://staging-telemetry.qdrant.io".to_string() } else { "https://telemetry.qdrant.io".to_string() }...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/update.rs
src/common/update.rs
use std::sync::Arc; use std::time::Duration; use api::rest::models::InferenceUsage; use api::rest::*; use collection::collection::Collection; use collection::operations::conversions::write_ordering_from_proto; use collection::operations::point_ops::*; use collection::operations::shard_selector_internal::ShardSelectorI...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry.rs
src/common/telemetry.rs
use std::sync::Arc; use std::time::Duration; use collection::operations::verification::new_unchecked_verification_pass; use common::types::{DetailsLevel, TelemetryDetail}; use parking_lot::Mutex; use schemars::JsonSchema; use segment::common::anonymize::Anonymize; use serde::Serialize; use shard::common::stopping_guar...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/helpers.rs
src/common/helpers.rs
use std::cmp::max; use std::io; use std::sync::atomic::{AtomicUsize, Ordering}; use fs_err as fs; use tokio::runtime; use tokio::runtime::Runtime; use tonic::transport::{Certificate, ClientTlsConfig, Identity, ServerTlsConfig}; use crate::settings::{Settings, TlsConfig}; pub fn create_search_runtime(max_search_threa...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/collections.rs
src/common/collections.rs
use std::collections::HashMap; use std::sync::Arc; use std::time::Duration; use api::grpc::qdrant::CollectionExists; use api::rest::models::{ CollectionDescription, CollectionsResponse, ShardKeyDescription, ShardKeysResponse, }; use collection::config::ShardingMethod; #[cfg(feature = "staging")] use collection::op...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
true
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/mod.rs
src/common/mod.rs
pub mod auth; pub mod collections; pub mod debugger; pub mod error_reporting; pub mod health; pub mod helpers; pub mod http_client; pub mod inference; pub mod metrics; pub mod pyroscope_state; pub mod query; pub mod snapshots; pub mod stacktrace; pub mod strict_mode; pub mod strings; pub mod telemetry; pub mod telemetr...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/snapshots.rs
src/common/snapshots.rs
use std::sync::Arc; use collection::collection::Collection; use collection::common::sha_256; use collection::common::snapshot_stream::SnapshotStream; use collection::operations::snapshot_ops::{ ShardSnapshotLocation, SnapshotDescription, SnapshotPriority, }; use collection::operations::verification::VerificationPa...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/health.rs
src/common/health.rs
use std::collections::HashSet; use std::future::{self, Future}; use std::sync::Arc; use std::sync::atomic::{self, AtomicBool}; use std::time::Duration; use std::{panic, thread}; use api::grpc::qdrant::qdrant_internal_client::QdrantInternalClient; use api::grpc::qdrant::{GetConsensusCommitRequest, GetConsensusCommitRes...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/stacktrace.rs
src/common/stacktrace.rs
use schemars::JsonSchema; use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, JsonSchema, Debug)] struct StackTraceSymbol { name: Option<String>, file: Option<String>, line: Option<u32>, } #[derive(Deserialize, Serialize, JsonSchema, Debug)] struct StackTraceFrame { symbols: Vec<Stac...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/strings.rs
src/common/strings.rs
/// Constant-time equality for String types #[inline] pub fn ct_eq(lhs: impl AsRef<str>, rhs: impl AsRef<str>) -> bool { constant_time_eq::constant_time_eq(lhs.as_ref().as_bytes(), rhs.as_ref().as_bytes()) }
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/query.rs
src/common/query.rs
use std::time::Duration; use api::rest::SearchGroupsRequestInternal; use collection::collection::distance_matrix::*; use collection::common::batching::batch_requests; use collection::grouping::group_by::GroupRequest; use collection::operations::consistency_params::ReadConsistency; use collection::operations::shard_sel...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/metrics.rs
src/common/metrics.rs
use std::collections::HashMap; use api::rest::models::HardwareUsage; use collection::shards::replica_set::replica_set_state::ReplicaState; use itertools::Itertools; use prometheus::TextEncoder; use prometheus::proto::{Counter, Gauge, LabelPair, Metric, MetricFamily, MetricType}; use segment::common::operation_time_sta...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
true
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/debugger.rs
src/common/debugger.rs
use std::sync::Arc; use parking_lot::Mutex; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; use crate::common::pyroscope_state::pyro::PyroscopeState; use crate::settings::Settings; #[derive(Serialize, JsonSchema, Debug, Deserialize, Clone)] pub struct PyroscopeConfig { pub url: String, pub ide...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/strict_mode.rs
src/common/strict_mode.rs
use std::sync::Arc; use collection::operations::verification::StrictModeVerification; use storage::content_manager::collection_verification::{ check_strict_mode, check_strict_mode_batch, check_strict_mode_toc, check_strict_mode_toc_batch, }; use storage::content_manager::errors::StorageError; use storage::content_...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/auth/jwt_parser.rs
src/common/auth/jwt_parser.rs
use jsonwebtoken::errors::ErrorKind; use jsonwebtoken::{Algorithm, DecodingKey, Validation, decode}; use validator::Validate; use super::AuthError; use super::claims::Claims; #[derive(Clone)] pub struct JwtParser { key: DecodingKey, validation: Validation, } impl JwtParser { const ALGORITHM: Algorithm = ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/auth/mod.rs
src/common/auth/mod.rs
use std::sync::Arc; use collection::operations::shard_selector_internal::ShardSelectorInternal; use collection::operations::types::ScrollRequestInternal; use common::counter::hardware_accumulator::HwMeasurementAcc; use segment::types::{WithPayloadInterface, WithVector}; use storage::content_manager::errors::StorageErr...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/auth/claims.rs
src/common/auth/claims.rs
use segment::json_path::JsonPath; use segment::types::{Condition, FieldCondition, Filter, Match, ValueVariants}; use serde::{Deserialize, Serialize}; use storage::rbac::Access; use validator::{Validate, ValidationErrors}; #[derive(Serialize, Deserialize, PartialEq, Clone, Debug)] pub struct Claims { /// The subjec...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/query_requests_grpc.rs
src/common/inference/query_requests_grpc.rs
use api::conversions::json::json_path_from_proto; use api::grpc::qdrant::RecommendInput; use api::grpc::qdrant::query::Variant; use api::grpc::{InferenceUsage, qdrant as grpc}; use api::rest::{self, LookupLocation, RecommendStrategy}; use collection::operations::universal_query::collection_query::{ CollectionPrefet...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/config.rs
src/common/inference/config.rs
use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize, Default)] pub struct InferenceConfig { pub address: Option<String>, pub timeout: Option<u64>, pub token: Option<String>, } impl InferenceConfig { pub fn new(address: Option<String>) -> Self { Self { ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/update_requests.rs
src/common/inference/update_requests.rs
use std::collections::HashMap; use api::rest::models::InferenceUsage; use api::rest::{Batch, BatchVectorStruct, PointStruct, PointVectors, Vector, VectorStruct}; use collection::operations::point_ops::{ BatchPersisted, BatchVectorStructPersisted, PointStructPersisted, VectorPersisted, VectorStructPersisted, };...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/batch_processing.rs
src/common/inference/batch_processing.rs
use std::collections::HashSet; use api::rest::{ ContextInput, ContextPair, DiscoverInput, Prefetch, Query, QueryGroupsRequestInternal, QueryInterface, QueryRequestInternal, RecommendInput, VectorInput, }; use super::service::{InferenceData, InferenceInput, InferenceRequest}; pub struct BatchAccum { pub(c...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/local_model.rs
src/common/inference/local_model.rs
use collection::operations::point_ops::VectorPersisted; use storage::content_manager::errors::StorageError; use super::bm25::Bm25; use super::service::{InferenceInput, InferenceType}; use crate::common::inference::inference_input::InferenceDataType; enum LocalModelName { Bm25, } impl LocalModelName { fn from...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/inference_input.rs
src/common/inference/inference_input.rs
use std::collections::HashMap; use api::rest::{Bm25Config, Document, DocumentOptions, Image, InferenceObject}; use serde::de::IntoDeserializer; use serde::{Deserialize, Serialize}; use serde_json::Value; use storage::content_manager::errors::StorageError; use super::service::InferenceData; #[derive(Debug, Serialize,...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/query_requests_rest.rs
src/common/inference/query_requests_rest.rs
use api::rest::models::InferenceUsage; use api::rest::schema as rest; use collection::lookup::WithLookup; use collection::operations::universal_query::collection_query::{ CollectionPrefetch, CollectionQueryGroupsRequest, CollectionQueryRequest, Mmr, NearestWithMmr, Query, VectorInputInternal, VectorQuery, }; us...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/params.rs
src/common/inference/params.rs
use crate::common::inference::token::InferenceToken; #[derive(Debug, Clone, PartialEq, Default)] pub struct InferenceParams { pub token: InferenceToken, pub timeout: Option<std::time::Duration>, } impl InferenceParams { pub fn new(token: impl Into<InferenceToken>, timeout: Option<std::time::Duration>) -> ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/bm25.rs
src/common/inference/bm25.rs
use std::borrow::Cow; use std::collections::{BTreeMap, HashMap}; use std::str::FromStr; use std::sync::Arc; use api::rest::{Bm25Config, TextPreprocessingConfig}; use collection::operations::point_ops::VectorPersisted; use itertools::Itertools; use murmur3::murmur3_32_of_slice; use segment::data_types::index::{Language...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/service.rs
src/common/inference/service.rs
use std::fmt::Display; use std::hash::Hash; use std::sync::Arc; use std::time::{Duration, SystemTime}; use actix_web::http::header::HttpDate; use api::rest::models::InferenceUsage; use api::rest::{Document, Image, InferenceObject}; use collection::operations::point_ops::VectorPersisted; use common::defaults::APP_USER_...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/batch_processing_grpc.rs
src/common/inference/batch_processing_grpc.rs
use std::collections::HashSet; use api::grpc::qdrant::vector_input::Variant; use api::grpc::qdrant::{ ContextInput, ContextInputPair, DiscoverInput, PrefetchQuery, Query, RecommendInput, VectorInput, query, }; use api::rest::schema as rest; use tonic::Status; use super::service::{InferenceData, InferenceInput...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/mod.rs
src/common/inference/mod.rs
#![allow(dead_code)] mod batch_processing; mod batch_processing_grpc; pub mod bm25; pub(crate) mod config; mod infer_processing; pub mod inference_input; mod local_model; pub mod params; pub mod query_requests_grpc; pub mod query_requests_rest; pub mod service; pub mod token; pub mod update_requests;
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/infer_processing.rs
src/common/inference/infer_processing.rs
use std::collections::{HashMap, HashSet}; use api::rest::models::InferenceUsage; use collection::operations::point_ops::VectorPersisted; use storage::content_manager::errors::StorageError; use super::batch_processing::BatchAccum; use super::service::{ InferenceData, InferenceInput, InferenceResponse, InferenceSer...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/inference/token.rs
src/common/inference/token.rs
use std::convert::Infallible; use std::future::{Ready, ready}; use actix_web::{FromRequest, HttpMessage}; #[derive(Debug, Clone, PartialEq, Default)] pub struct InferenceToken(pub Option<String>); impl InferenceToken { pub fn new(key: impl Into<String>) -> Self { InferenceToken(Some(key.into())) } ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/requests_telemetry.rs
src/common/telemetry_ops/requests_telemetry.rs
use std::collections::HashMap; use std::sync::Arc; use common::types::TelemetryDetail; use parking_lot::Mutex; use schemars::JsonSchema; use segment::common::anonymize::{Anonymize, anonymize_collection_values}; use segment::common::operation_time_statistics::{ OperationDurationStatistics, OperationDurationsAggrega...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/hardware.rs
src/common/telemetry_ops/hardware.rs
use std::collections::HashMap; use api::rest::models::HardwareUsage; use schemars::JsonSchema; use segment::common::anonymize::Anonymize; use serde::Serialize; use storage::dispatcher::Dispatcher; use storage::rbac::{Access, AccessRequirements}; #[derive(Serialize, Clone, Debug, JsonSchema, Anonymize)] pub struct Har...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/collections_telemetry.rs
src/common/telemetry_ops/collections_telemetry.rs
use std::sync::atomic::AtomicBool; use std::time::Duration; use collection::operations::types::CollectionResult; use collection::telemetry::{ CollectionSnapshotTelemetry, CollectionTelemetry, CollectionsAggregatedTelemetry, }; use common::types::{DetailsLevel, TelemetryDetail}; use schemars::JsonSchema; use segmen...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/memory_telemetry.rs
src/common/telemetry_ops/memory_telemetry.rs
use schemars::JsonSchema; use segment::common::anonymize::Anonymize; use serde::Serialize; use storage::rbac::Access; #[cfg(all( not(target_env = "msvc"), any(target_arch = "x86_64", target_arch = "aarch64") ))] use storage::rbac::AccessRequirements; #[cfg(all( not(target_env = "msvc"), any(target_arch ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/app_telemetry.rs
src/common/telemetry_ops/app_telemetry.rs
use std::path::Path; use chrono::{DateTime, SubsecRound, Utc}; use common::flags::FeatureFlags; use common::types::{DetailsLevel, TelemetryDetail}; use schemars::JsonSchema; use segment::common::anonymize::Anonymize; use segment::types::HnswGlobalConfig; use serde::Serialize; use crate::settings::Settings; pub struc...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/mod.rs
src/common/telemetry_ops/mod.rs
pub mod app_telemetry; pub mod cluster_telemetry; pub mod collections_telemetry; pub mod hardware; pub mod memory_telemetry; pub mod requests_telemetry;
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/common/telemetry_ops/cluster_telemetry.rs
src/common/telemetry_ops/cluster_telemetry.rs
use std::collections::HashMap; use collection::operations::types::PeerMetadata; use collection::shards::shard::PeerId; use common::types::{DetailsLevel, TelemetryDetail}; use schemars::JsonSchema; use segment::common::anonymize::{Anonymize, anonymize_collection_values_opt}; use serde::Serialize; use storage::dispatche...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/migrations/single_to_cluster.rs
src/migrations/single_to_cluster.rs
use std::sync::Arc; use collection::collection_state::State; use collection::config::{CollectionConfigInternal, ShardingMethod}; use collection::shards::replica_set::replica_set_state::ReplicaState; use collection::shards::shard::PeerId; use storage::content_manager::collection_meta_ops::{ CollectionMetaOperations...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/migrations/mod.rs
src/migrations/mod.rs
pub mod single_to_cluster;
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/actix/certificate_helpers.rs
src/actix/certificate_helpers.rs
use std::fmt::Debug; use std::io::{self, BufRead, BufReader}; use std::sync::Arc; use std::time::{Duration, Instant}; use fs_err::File; use parking_lot::RwLock; use rustls::client::VerifierBuilderError; use rustls::pki_types::CertificateDer; use rustls::server::{ClientHello, ResolvesServerCert, WebPkiClientVerifier}; ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/actix/helpers.rs
src/actix/helpers.rs
use std::fmt::Debug; use std::future::Future; use actix_web::http::header; use actix_web::http::header::HeaderMap; use actix_web::rt::time::Instant; use actix_web::{HttpResponse, ResponseError, http}; use api::rest::models::{ApiResponse, ApiStatus, HardwareUsage, InferenceUsage, Usage}; use collection::operations::typ...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/actix/web_ui.rs
src/actix/web_ui.rs
use std::path::Path; use actix_web::dev::HttpServiceFactory; use actix_web::http::header::HeaderValue; use actix_web::middleware::DefaultHeaders; use actix_web::web; use crate::settings::Settings; const DEFAULT_STATIC_DIR: &str = "./static"; pub const WEB_UI_PATH: &str = "/dashboard"; pub fn web_ui_folder(settings:...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/actix/auth.rs
src/actix/auth.rs
use std::convert::Infallible; use std::future::{Ready, ready}; use std::sync::Arc; use actix_web::body::{BoxBody, EitherBody}; use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform, forward_ready}; use actix_web::{Error, FromRequest, HttpMessage, HttpResponse, ResponseError}; use futures_util::futur...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false
qdrant/qdrant
https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/src/actix/mod.rs
src/actix/mod.rs
pub mod actix_telemetry; pub mod api; mod auth; mod certificate_helpers; pub mod helpers; pub mod web_ui; use std::io; use std::sync::Arc; use ::api::rest::models::{ApiResponse, ApiStatus, VersionInfo}; use actix_cors::Cors; use actix_multipart::form::MultipartFormConfig; use actix_multipart::form::tempfile::TempFile...
rust
Apache-2.0
f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd
2026-01-04T15:34:51.524868Z
false