View Source API Reference fnord v0.4.34
Modules
AI is a behavior module that defines the interface for interacting with OpenAI's API. It provides a common interface for the various OpenAI-powered operations used by the application.
When file or other input to too large for the model's context window, this
module may be used to process the file in chunks. It automatically modifies
the supplied agent prompt to include instructions for accumulating a response
across multiple chunks based on the max_tokens
parameter supplied to the
get_response
function.
This module provides an agent that summarizes files' contents in order to generate embeddings for the database and summaries for the user.
This module provides functions to interact with the OpenAI API, including getting embeddings and completions.
This module sends a request to the model and handles the response. It is able
to handle tool calls and responses. If the caller includes an on_event
function, it will be called whenever a tool call is performed or if a tool
call results in an error.
This module is used to split a string into chunks by the number of tokens, while accounting for other data that might be going with it to the API endpoint with the limited token count.
Oh yeah? I'm gonna make my own tokenizer, with blackjack and hookers!
This module provides the functionality for the index
sub-command.
This module provides the functionality for the search
sub-command.
This module provides the functionality for the summary
sub-command.
Fnord is a code search tool that uses OpenAI's embeddings API to index and search code files.
Module for interacting with git.
This behaviour wraps the AI-powered operations used by Cmd.Indexer
to allow
overrides for testing.
A module that implements a process pool using a GenServer.
The Scanner
module traverses a directory recursively, skipping hidden files
and files that should be ignored based on a .gitignore
file. It also skips
binary files and files with a size of 0 bytes.
This module provides the functionality for storing and retrieving embeddings and metadata for files.