Documentation ¶
Index ¶
Constants ¶
View Source
const EmbeddingModel = "text-embedding-ada-002"
View Source
const MaxTokensPerChunk = 1500
MaxTokensPerChunk is the maximum number of tokens allowed in a single chunk for OpenAI embeddings MaxTokensPerChunk is the maximum number of tokens allowed in a single chunk for OpenAI embeddings
Variables ¶
This section is empty.
Functions ¶
func ExtractFilesFromZip ¶
ExtractFilesFromZip extracts the text from files within a zip file
func ExtractTextFromPDF ¶
extract human-readable text from a given pdf with support for spaces/whitespace.
Types ¶
Click to show internal directories.
Click to hide internal directories.