Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
```elixir title="Elixir"
defmodule ReadContent do
def process_extracted_content do
# Extract content and iterate over lines
case Kreuzberg.extract_file_sync("document.pdf", nil, nil) do
{:ok, content} ->
IO.puts("Processing extracted content:")
# Split content into lines and iterate
content
|> String.split("\n", trim: true)
|> Enum.each(fn line ->
IO.puts(" #{line}")
end)
:ok
{:error, reason} ->
IO.puts("Error: #{reason}")
:error
end
end
end
```