package
0.2.3
Repository: https://github.com/parakeet-nest/parakeet.git
Documentation: pkg.go.dev

# Functions

ChunkText takes a text string and divides it into chunks of a specified size with a given overlap.
CreateChunkContext generates a succinct context for a given chunk within the whole document content.
CreateChunkContextWithPromptTemplate generates a contextual response based on a given prompt template and document content.
FindFiles searches for files with a specific extension in the given root directory and its subdirectories.
ForEachFile iterates over all files with a specific extension in a directory and its subdirectories.
GenerateContextFromDocs generates the context content from a slice of documents.
GetArrayOfContentFiles searches for files with a specific extension in the given directory and its subdirectories.
GetMapOfContentFiles searches for files with a specific extension in the given directory and its subdirectories.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadTextFile reads the contents of a text file at the given path and returns the contents as a string.
No description provided by the author
No description provided by the author
sections := SplitMarkdownByLevelSections(content, 1) // Split by top-level sections for i, section := range sections { fmt.Printf("Section %d:\n%s\n\n", i+1, section) } subsections := SplitMarkdownByLevelSections(content, 2) // Split by second-level sections for i, subsection := range subsections { fmt.Printf("Subsection %d:\n%s\n\n", i+1, subsection) } */.
No description provided by the author
SplitTextWithDelimiter splits the given text using the specified delimiter and returns a slice of strings.
SplitTextWithRegex splits the given text using the provided regular expression delimiter.
No description provided by the author

# Structs

No description provided by the author