tiktoken

package
v0.0.0-...-1414e4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package tiktoken implements a wrapper around the github.com/tiktoken-go/tokenizer library. It is compatible with OpenAI's tiktoken Python library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Len

func Len(forModel string) func(string) int

Len returns a len function for the given model that returns the number of tokens in a string.

func Splitter

func Splitter(model string, options flowllm.SplitterOptions) flowllm.Splitter

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL