fmt: applied formatting
This commit is contained in:
+3
-2
@@ -4,6 +4,7 @@ use crate::{
|
|||||||
client::Model,
|
client::Model,
|
||||||
config::memory,
|
config::memory,
|
||||||
function::{Functions, run_llm_function},
|
function::{Functions, run_llm_function},
|
||||||
|
graph, rag,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::rag_cache::RagKey;
|
use super::rag_cache::RagKey;
|
||||||
@@ -1021,7 +1022,7 @@ async fn init_graph_rags(
|
|||||||
// Graph validation catches this too, but it is skipped when
|
// Graph validation catches this too, but it is skipped when
|
||||||
// `validate_before_run` is off, so this guard is the load-bearing one.
|
// `validate_before_run` is off, so this guard is the load-bearing one.
|
||||||
if let Some(driver) = &rag_node.driver
|
if let Some(driver) = &rag_node.driver
|
||||||
&& let Some(message) = crate::graph::validator::rag_driver_error(driver)
|
&& let Some(message) = graph::validator::rag_driver_error(driver)
|
||||||
{
|
{
|
||||||
bail!("rag node '{node_id}': {message}");
|
bail!("rag node '{node_id}': {message}");
|
||||||
}
|
}
|
||||||
@@ -1053,7 +1054,7 @@ async fn init_graph_rags(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if config.driver.is_none() {
|
if config.driver.is_none() {
|
||||||
config.driver = Some(crate::rag::select_rag_driver()?);
|
config.driver = Some(rag::select_rag_driver()?);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user