This commit is contained in:
18
docs/snippets/ruby/config/embedding_config.md
Normal file
18
docs/snippets/ruby/config/embedding_config.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```ruby title="Ruby"
|
||||
require 'kreuzberg'
|
||||
|
||||
config = Kreuzberg::ExtractionConfig.new(
|
||||
chunking: Kreuzberg::ChunkingConfig.new(
|
||||
max_characters: 1000,
|
||||
embedding: Kreuzberg::EmbeddingConfig.new(
|
||||
model: Kreuzberg::EmbeddingModelType.new(
|
||||
type: 'preset',
|
||||
name: 'all-mpnet-base-v2'
|
||||
),
|
||||
batch_size: 16,
|
||||
normalize: true,
|
||||
show_download_progress: true
|
||||
)
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user