Skip to content

Commit

Permalink
more logs (#2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Nov 30, 2023
1 parent daa584d commit 2ed7448
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/data_sources/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl SearchFilter {
/// Section prefixes are repeated in all chunks generated from the section (and its children). We do
/// not insert any separators the separators are the responsibility of the caller (\n at end of
/// sections, ...)
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Debug)]
pub struct Section {
pub prefix: Option<String>,
pub content: Option<String>,
Expand Down Expand Up @@ -799,6 +799,13 @@ impl DataSource {
hash: String,
}

if document_id == "slack-C01LV3NED08-thread-1701302546.665219" {
utils::info(&format!(
"Content slack-C01LV3NED08-thread-1701302546.665219: {:?}",
text,
));
}

// Split text in chunks.
let splits = splitter(self.config.splitter_id)
.split(
Expand Down

0 comments on commit 2ed7448

Please sign in to comment.