HTTP API WIP
This commit is contained in:
parent
0bd97d0ed3
commit
552fce432b
14 changed files with 740 additions and 35 deletions
10
src/api/state.rs
Normal file
10
src/api/state.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use crate::{storage::Postgres, text_encoder::TextEncoder, tokenize::Tokenizer};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct AppState {
|
||||
pub db: Postgres,
|
||||
pub tokenizer: Tokenizer,
|
||||
pub embedder: TextEncoder,
|
||||
pub reranker: TextEncoder,
|
||||
pub chunk_size: usize,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue