Package-level declarations

Types

Link copied to clipboard

Default QueryExtractor implementation that extracts the content of the last user message from the prompt.

Link copied to clipboard
fun interface QueryExtractor

Extracts a search query string from a Prompt to be used for memory retrieval.

Link copied to clipboard
data class RetrievalSettings(val storage: SearchStorage<TextDocument, SimilaritySearchRequest>, val queryExtractor: QueryExtractor = LastUserMessageQueryExtractor(), val searchStrategy: SearchStrategy = SimilaritySearchStrategy(), val promptAugmenter: PromptAugmenter = SystemPromptAugmenter(), val enableAutomaticRetrieval: Boolean = true, val namespace: String? = null)

Settings controlling how memory records are retrieved and injected into prompts (RAG).

Link copied to clipboard
fun interface SearchStrategy

Search strategy for creating search requests during prompt augmentation.

Link copied to clipboard

Intermediate builder that lets callers select a SearchStrategy implementation.

Link copied to clipboard
class SimilaritySearchStrategy(val topK: Int = 10, val similarityThreshold: Double = 0.0, val filterExpression: String? = null) : SearchStrategy

Similarity search mode using vector embeddings for semantic search.