Index

A C D E F G H I M O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form

A

adapt(Function<U, T>, Function<U, Mono<T>>) - Method in interface org.nasdanika.ai.SimilaritySearch
 
adapt(SimilaritySearch<List<Float>, D>) - Static method in interface org.nasdanika.ai.SimilaritySearch
Adapts a single vector search to multi-vector search
assistant - Enum constant in enum class org.nasdanika.ai.Chat.Role
 

C

CharChunkingEmbeddings - Class in org.nasdanika.ai
A simple implementation which treats a character as a token.
CharChunkingEmbeddings(Embeddings, int, int) - Constructor for class org.nasdanika.ai.CharChunkingEmbeddings
 
chat(List<Chat.Message>) - Method in interface org.nasdanika.ai.Chat
 
chat(Chat.Message...) - Method in interface org.nasdanika.ai.Chat
 
Chat - Interface in org.nasdanika.ai
 
Chat.Message - Interface in org.nasdanika.ai
 
Chat.Requirement - Record Class in org.nasdanika.ai
Chat requirement.
Chat.ResponseMessage - Interface in org.nasdanika.ai
 
Chat.Role - Enum Class in org.nasdanika.ai
 
chatAsync(List<Chat.Message>) - Method in interface org.nasdanika.ai.Chat
 
chatAsync(Chat.Message...) - Method in interface org.nasdanika.ai.Chat
 
chunk(String) - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
ChunkingEmbeddings<T> - Class in org.nasdanika.ai
 
ChunkingEmbeddings(Embeddings, int, int) - Constructor for class org.nasdanika.ai.ChunkingEmbeddings
 
compareTo(SearchResult<D>) - Method in interface org.nasdanika.ai.SearchResult
 
Coordinates - Interface in org.nasdanika.ai
Model coordinates (identifier)
create(String, String) - Static method in interface org.nasdanika.ai.Chat.Message
 
createMessage(String) - Method in enum class org.nasdanika.ai.Chat.Role
 

D

decode(char[]) - Method in class org.nasdanika.ai.CharChunkingEmbeddings
 
decode(IntArrayList) - Method in class org.nasdanika.ai.EncodingChunkingEmbeddings
 
decode(T) - Method in class org.nasdanika.ai.ChunkingEmbeddings
Decodes a string from an array of tokens
developer - Enum constant in enum class org.nasdanika.ai.Chat.Role
 
dimensions() - Method in record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Returns the value of the dimensions record component.

E

Embeddings - Interface in org.nasdanika.ai
Embeddings "business" interface focusing on ease of use and leaving token usage reporting to implementations.
Embeddings.Requirement - Record Class in org.nasdanika.ai
Embeddings requirement.
EmbeddingsItem(SimilaritySearch.IndexId, float[], int) - Constructor for record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Creates an instance of a EmbeddingsItem record class.
EmbeddingsResource - Interface in org.nasdanika.ai
A collection of strings pre-computed embeddings, e.g. web site contents.
EmbeddingsResourceContents - Interface in org.nasdanika.ai
A pre-computed embeddings
embeddingsSearch(SimilaritySearch<List<List<Float>>, D>, Embeddings) - Static method in interface org.nasdanika.ai.SimilaritySearch
Computes embeddings and uses them for similarity search in a multi-vector search.
encode(String) - Method in class org.nasdanika.ai.CharChunkingEmbeddings
 
encode(String) - Method in class org.nasdanika.ai.ChunkingEmbeddings
Encodes a string into tokens
encode(String) - Method in class org.nasdanika.ai.EncodingChunkingEmbeddings
 
EncodingChunkingEmbeddings - Class in org.nasdanika.ai
 
EncodingChunkingEmbeddings(Embeddings, int, int, Encoding) - Constructor for class org.nasdanika.ai.EncodingChunkingEmbeddings
 
EncodingChunkingEmbeddings(Embeddings, int, int, EncodingType) - Constructor for class org.nasdanika.ai.EncodingChunkingEmbeddings
 
equals(Object) - Method in record class org.nasdanika.ai.Chat.Requirement
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.nasdanika.ai.Embeddings.Requirement
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.nasdanika.ai.SimilaritySearch.IndexId
Indicates whether some other object is "equal to" this one.

F

find(T, int) - Method in interface org.nasdanika.ai.SimilaritySearch
Finds items closest to the query
findAsync(T, int) - Method in interface org.nasdanika.ai.SimilaritySearch
Finds items closest to the query
from(Index<SimilaritySearch.IndexId, float[], SimilaritySearch.EmbeddingsItem, Float>) - Static method in interface org.nasdanika.ai.SimilaritySearch
 
from(Index<SimilaritySearch.IndexId, float[], SimilaritySearch.EmbeddingsItem, Float>, Function<float[], float[]>) - Static method in interface org.nasdanika.ai.SimilaritySearch
 
function - Enum constant in enum class org.nasdanika.ai.Chat.Role
 

G

generate(String) - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
generate(String) - Method in interface org.nasdanika.ai.Embeddings
Generates embeddings for a single string
generate(List<String>) - Method in interface org.nasdanika.ai.Embeddings
Batch generation
generateAsync(String) - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
generateAsync(String) - Method in interface org.nasdanika.ai.Embeddings
Asynchronously generates embeddings for a single string
generateAsync(List<String>) - Method in interface org.nasdanika.ai.Embeddings
Asynchronous batch generation
getContent() - Method in interface org.nasdanika.ai.Chat.Message
 
getContents() - Method in interface org.nasdanika.ai.EmbeddingsResource
 
getContents() - Method in interface org.nasdanika.ai.EmbeddingsResourceContents
 
getDimensions() - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
getDimensions() - Method in interface org.nasdanika.ai.Embeddings
 
getDimensions() - Method in interface org.nasdanika.ai.EmbeddingsResourceContents
 
getDistance() - Method in interface org.nasdanika.ai.SearchResult
Distance from the query vector
getEmbeddings() - Method in interface org.nasdanika.ai.EmbeddingsResourceContents
 
getFinishReason() - Method in interface org.nasdanika.ai.Chat.ResponseMessage
 
getIndex() - Method in interface org.nasdanika.ai.SearchResult
Embedding position
getMaxInputTokens() - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
getMaxInputTokens() - Method in interface org.nasdanika.ai.Model
 
getMaxOutputTokens() - Method in interface org.nasdanika.ai.Chat
 
getMimeType() - Method in interface org.nasdanika.ai.EmbeddingsResource
 
getMimeType() - Method in interface org.nasdanika.ai.EmbeddingsResourceContents
 
getName() - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
getName() - Method in interface org.nasdanika.ai.Coordinates
Model name
getProvider() - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
getProvider() - Method in interface org.nasdanika.ai.Coordinates
Provider name - OpenAI, Ollama, ...
getRefusal() - Method in interface org.nasdanika.ai.Chat.ResponseMessage
 
getRole() - Method in interface org.nasdanika.ai.Chat.Message
 
getUri() - Method in interface org.nasdanika.ai.EmbeddingsResourceContents
 
getUri() - Method in interface org.nasdanika.ai.SearchResult
Resource URI
getVersion() - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
getVersion() - Method in interface org.nasdanika.ai.Coordinates
 

H

hashCode() - Method in record class org.nasdanika.ai.Chat.Requirement
Returns a hash code value for this object.
hashCode() - Method in record class org.nasdanika.ai.Embeddings.Requirement
Returns a hash code value for this object.
hashCode() - Method in record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Returns a hash code value for this object.
hashCode() - Method in record class org.nasdanika.ai.SimilaritySearch.IndexId
Returns a hash code value for this object.

I

id() - Method in record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Returns the value of the id record component.
index() - Method in record class org.nasdanika.ai.SimilaritySearch.IndexId
Returns the value of the index record component.
IndexId(String, int) - Constructor for record class org.nasdanika.ai.SimilaritySearch.IndexId
Creates an instance of a IndexId record class.
isTooLong(String) - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
isTooLong(String) - Method in interface org.nasdanika.ai.Embeddings
 

M

model() - Method in record class org.nasdanika.ai.Chat.Requirement
Returns the value of the model record component.
model() - Method in record class org.nasdanika.ai.Embeddings.Requirement
Returns the value of the model record component.
Model - Interface in org.nasdanika.ai
Base interface for interfaces to work with (large language) models.

O

org.nasdanika.ai - module org.nasdanika.ai
 
org.nasdanika.ai - package org.nasdanika.ai
 

P

provider() - Method in record class org.nasdanika.ai.Chat.Requirement
Returns the value of the provider record component.
provider() - Method in record class org.nasdanika.ai.Embeddings.Requirement
Returns the value of the provider record component.

R

Requirement(String, String, String) - Constructor for record class org.nasdanika.ai.Chat.Requirement
Creates an instance of a Requirement record class.
Requirement(String, String, String) - Constructor for record class org.nasdanika.ai.Embeddings.Requirement
Creates an instance of a Requirement record class.

S

SearchResult<D extends Comparable<D>> - Interface in org.nasdanika.ai
 
SimilaritySearch<T,D extends Comparable<D>> - Interface in org.nasdanika.ai
 
SimilaritySearch.EmbeddingsItem - Record Class in org.nasdanika.ai
Vector index item
SimilaritySearch.IndexId - Record Class in org.nasdanika.ai
Index id - item URI and embedding vector index for URIs with multiple vectors/chunks.
size(char[]) - Method in class org.nasdanika.ai.CharChunkingEmbeddings
 
size(IntArrayList) - Method in class org.nasdanika.ai.EncodingChunkingEmbeddings
 
size(T) - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
slice(char[], int, int) - Method in class org.nasdanika.ai.CharChunkingEmbeddings
 
slice(IntArrayList, int, int) - Method in class org.nasdanika.ai.EncodingChunkingEmbeddings
 
slice(T, int, int) - Method in class org.nasdanika.ai.ChunkingEmbeddings
 
system - Enum constant in enum class org.nasdanika.ai.Chat.Role
 

T

tool - Enum constant in enum class org.nasdanika.ai.Chat.Role
 
toString() - Method in record class org.nasdanika.ai.Chat.Requirement
Returns a string representation of this record class.
toString() - Method in record class org.nasdanika.ai.Embeddings.Requirement
Returns a string representation of this record class.
toString() - Method in record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Returns a string representation of this record class.
toString() - Method in record class org.nasdanika.ai.SimilaritySearch.IndexId
Returns a string representation of this record class.

U

uri() - Method in record class org.nasdanika.ai.SimilaritySearch.IndexId
Returns the value of the uri record component.
user - Enum constant in enum class org.nasdanika.ai.Chat.Role
 

V

valueOf(String) - Static method in enum class org.nasdanika.ai.Chat.Role
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.nasdanika.ai.Chat.Role
Returns an array containing the constants of this enum class, in the order they are declared.
vector() - Method in record class org.nasdanika.ai.SimilaritySearch.EmbeddingsItem
Returns the value of the vector record component.
version() - Method in record class org.nasdanika.ai.Chat.Requirement
Returns the value of the version record component.
version() - Method in record class org.nasdanika.ai.Embeddings.Requirement
Returns the value of the version record component.
A C D E F G H I M O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form