This commit is contained in:
19
docs/snippets/rust/advanced/embedding_with_chunking.md
Normal file
19
docs/snippets/rust/advanced/embedding_with_chunking.md
Normal file
@@ -0,0 +1,19 @@
|
||||
```rust title="Rust"
|
||||
use kreuzberg::{ExtractionConfig, ChunkingConfig, EmbeddingConfig};
|
||||
|
||||
let config = ExtractionConfig {
|
||||
chunking: Some(ChunkingConfig {
|
||||
max_characters: 1024,
|
||||
overlap: 100,
|
||||
embedding: Some(EmbeddingConfig {
|
||||
model: "balanced".to_string(),
|
||||
normalize: true,
|
||||
batch_size: 32,
|
||||
show_download_progress: false,
|
||||
..Default::default()
|
||||
}),
|
||||
..Default::default()
|
||||
}),
|
||||
..Default::default()
|
||||
};
|
||||
```
|
||||
Reference in New Issue
Block a user