Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dkuku/ex_text_splitter

Elixir bindings for text_splitter crate
https://github.com/dkuku/ex_text_splitter

Last synced: 17 days ago
JSON representation

Elixir bindings for text_splitter crate

Awesome Lists containing this project

README

        

# ExTextSplitter

This package provides bindings to [text-splitter](https://github.com/benbrandt/text-splitter) crate
Check the [example livebook](examples/ex_text_splitter.livemd)
By default only the text_splitter function is available but you can configure the available features:

```elixir
# this will enable all features
config :ex_text_splitter,
features: ["markdown", "tiktoken-rs"]
```

This can be also configured using Mix.installed
```elixir
Mix.install(
[:ex_text_splitter],
config: [ex_text_splitter: [features: ["markdown"]]]
)
```

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `ex_text_splitter` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:ex_text_splitter, "~> 0.1.0"}
]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at .