mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-06 21:05:17 +02:00
fix: arc-share retrieved chunks, centralize entity embeddings, and trim hot-path clones.
This commit is contained in:
@@ -18,8 +18,8 @@ use crate::{
|
||||
middlewares::{
|
||||
auth_middleware::RequireUser,
|
||||
response_middleware::{
|
||||
template_as_response, template_with_headers, TemplateResponse, TemplateResult,
|
||||
ResponseResult,
|
||||
template_as_response, template_with_headers, ResponseResult, TemplateResponse,
|
||||
TemplateResult,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -22,8 +22,8 @@ use retrieval_pipeline::answer_retrieval::{
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::from_str;
|
||||
use tokio::sync::Mutex;
|
||||
use tokio::sync::mpsc::channel;
|
||||
use tokio::sync::Mutex;
|
||||
use tracing::{debug, error, info};
|
||||
|
||||
use common::storage::{
|
||||
@@ -36,10 +36,7 @@ use common::storage::{
|
||||
},
|
||||
};
|
||||
|
||||
use crate::{
|
||||
html_state::HtmlState,
|
||||
middlewares::auth_middleware::RequireUser,
|
||||
};
|
||||
use crate::{html_state::HtmlState, middlewares::auth_middleware::RequireUser};
|
||||
|
||||
use super::reference_validation::{collect_reference_ids_from_retrieval, validate_references};
|
||||
|
||||
|
||||
@@ -3,15 +3,11 @@ mod message_response_stream;
|
||||
mod reference_validation;
|
||||
mod references;
|
||||
|
||||
use axum::{
|
||||
extract::FromRef,
|
||||
routing::get,
|
||||
Router,
|
||||
};
|
||||
use axum::{extract::FromRef, routing::get, Router};
|
||||
pub use chat_handlers::{
|
||||
delete_conversation, new_chat_user_message, new_user_message, patch_conversation_title,
|
||||
reload_sidebar, show_conversation_editing_title,
|
||||
show_chat_base as show_base, show_existing_chat as show_existing,
|
||||
reload_sidebar, show_chat_base as show_base, show_conversation_editing_title,
|
||||
show_existing_chat as show_existing,
|
||||
};
|
||||
use message_response_stream::get_response_stream;
|
||||
use references::show_reference_tooltip;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#![allow(clippy::missing_docs_in_private_items)]
|
||||
|
||||
use axum::{
|
||||
extract::{Path, State},
|
||||
};
|
||||
use axum::extract::{Path, State};
|
||||
use chrono::{DateTime, Utc};
|
||||
use chrono_tz::Tz;
|
||||
use serde::Serialize;
|
||||
|
||||
Reference in New Issue
Block a user