Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/base/json_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl JsonSchemaBuilder {
required: struct_schema
.fields
.iter()
.filter(|&f| (self.options.fields_always_required || !f.value_type.nullable))
.filter(|&f| self.options.fields_always_required || !f.value_type.nullable)
.map(|f| f.name.to_string())
.collect(),
additional_properties: Some(Schema::Bool(false).into()),
Expand Down
15 changes: 0 additions & 15 deletions src/base/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ impl fmt::Display for ConstantMapping {
}
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CollectionMapping {
pub field: FieldMapping,
pub scope_name: ScopeName,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct StructMapping {
pub fields: Vec<NamedSpec<ValueMapping>>,
Expand Down Expand Up @@ -522,15 +516,6 @@ pub struct TransientFlowSpec {
pub output_value: ValueMapping,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SimpleSemanticsQueryHandlerSpec {
pub name: String,
pub flow_instance_name: String,
pub export_target_name: String,
pub query_transform_flow: TransientFlowSpec,
pub default_similarity_metric: VectorSimilarityMetric,
}

pub struct AuthEntryReference<T> {
pub key: String,
_phantom: std::marker::PhantomData<T>,
Expand Down
14 changes: 0 additions & 14 deletions src/ops/targets/qdrant.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use crate::ops::sdk::*;
use crate::prelude::*;

use std::fmt::Display;

use crate::ops::registry::ExecutorFactoryRegistry;
use crate::setup;
use qdrant_client::Qdrant;
Expand Down Expand Up @@ -351,18 +349,6 @@ struct Factory {
qdrant_clients: Mutex<HashMap<Option<spec::AuthEntryReference<ConnectionSpec>>, Arc<Qdrant>>>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
struct CollectionId {
collection_name: String,
}

impl Display for CollectionId {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.collection_name)?;
Ok(())
}
}

#[async_trait]
impl TargetFactoryBase for Factory {
type Spec = Spec;
Expand Down
Loading