This commit is contained in:
Mubelotix
2025-07-03 15:53:09 +02:00
parent 7423243be0
commit cf9b311f71
3 changed files with 10 additions and 7 deletions

View File

@ -3,7 +3,7 @@ pub mod index;
pub mod server;
pub mod service;
use std::{fmt::{self, Display}, future::Future};
use std::fmt::{self, Display};
#[allow(unused)]
pub use index::GetAllDocumentsOptions;

View File

@ -757,9 +757,12 @@ async fn fragment_insertion() {
let (server, uid, mut settings) = init_fragments_index().await;
let index = server.index(uid);
settings["embedders"]["rest"]["indexingFragments"].as_object_mut().unwrap().insert(String::from("useless"), serde_json::json!({
settings["embedders"]["rest"]["indexingFragments"].as_object_mut().unwrap().insert(
String::from("useless"),
serde_json::json!({
"value": "This fragment is useless"
}));
}),
);
let (response, code) = index.update_settings(settings).await;
snapshot!(code, @"202 Accepted");

View File

@ -1,10 +1,10 @@
mod binary_quantized;
mod fragments;
#[cfg(feature = "test-ollama")]
mod ollama;
mod openai;
mod rest;
mod settings;
mod fragments;
use std::str::FromStr;