This commit is contained in:
13
docs/snippets/elixir/config/language_detection_config.md
Normal file
13
docs/snippets/elixir/config/language_detection_config.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```elixir title="Elixir"
|
||||
config_json = Jason.encode!(%{
|
||||
"language_detection" => %{
|
||||
"enabled" => true,
|
||||
"min_confidence" => 0.8,
|
||||
"detect_multiple" => true
|
||||
}
|
||||
})
|
||||
|
||||
{:ok, result} = Kreuzberg.extract_file_sync("document.pdf", "application/pdf", config_json)
|
||||
IO.puts("Detected language: #{result.language}")
|
||||
IO.puts("Confidence: #{result.language_confidence}")
|
||||
```
|
||||
Reference in New Issue
Block a user