- score() - Method in class dev.langchain4j.store.embedding.EmbeddingMatch
-
Returns the relevance score (derivative of cosine distance) of this embedding compared to
a reference embedding during a search.
- sendMessages(ChatMessage...) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a sequence of messages to the LLM and returns a response.
- sendMessages(List<ChatMessage>) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a list of messages to the LLM and returns a response.
- sendMessages(List<ChatMessage>, List<ToolSpecification>) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a list of messages and a list of tool specifications to the LLM and returns a response.
- sendMessages(List<ChatMessage>, ToolSpecification) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a list of messages and a specification of a tool that must be executed to the LLM and returns a response
that contains a request to execute specified tool.
- sendMessages(List<ChatMessage>, StreamingResponseHandler) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
-
- sendMessages(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
-
- sendMessages(List<ChatMessage>, ToolSpecification, StreamingResponseHandler) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
-
- sendUserMessage(String) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a message from a user to the LLM and returns a response.
- sendUserMessage(UserMessage) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a message from a user to the LLM and returns a response.
- sendUserMessage(Object) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
-
Sends a structured prompt as a user message to the LLM and returns a response.
- sendUserMessage(String, StreamingResponseHandler) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
-
- sendUserMessage(UserMessage, StreamingResponseHandler) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
-
- sendUserMessage(Object, StreamingResponseHandler) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
-
- Similarity - Class in dev.langchain4j.store.embedding
-
- Similarity() - Constructor for class dev.langchain4j.store.embedding.Similarity
-
- split(Document) - Method in interface dev.langchain4j.data.document.DocumentSplitter
-
Splits a single Document into a list of TextSegment objects.
- splitAll(List<Document>) - Method in interface dev.langchain4j.data.document.DocumentSplitter
-
Splits a list of Documents into a list of TextSegment objects.
- StreamingChatLanguageModel - Interface in dev.langchain4j.model.chat
-
Represents a LLM that has a chat interface and can stream responses one token at a time.
- StreamingLanguageModel - Interface in dev.langchain4j.model.language
-
Represents a LLM that has a simple text interface (as opposed to a chat interface) and can stream responses one token at a time.
- StreamingResponseHandler - Interface in dev.langchain4j.model
-
- STRING - Static variable in class dev.langchain4j.agent.tool.JsonSchemaProperty
-
- StructuredPrompt - Annotation Type in dev.langchain4j.model.input.structured
-
- StructuredPromptProcessor - Class in dev.langchain4j.model.input.structured
-
- StructuredPromptProcessor() - Constructor for class dev.langchain4j.model.input.structured.StructuredPromptProcessor
-
- SystemMessage - Class in dev.langchain4j.data.message
-
Represents a system message, typically defined by a developer.
- SystemMessage(String) - Constructor for class dev.langchain4j.data.message.SystemMessage
-
- systemMessage(String) - Static method in class dev.langchain4j.data.message.SystemMessage
-