- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for detectIntent (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/org/codelibs/fess/llm/LlmClient.java
*/ IntentDetectionResult detectIntent(String userMessage); /** * Detects the intent of a user message with conversation history context. * * @param userMessage the user's message * @param history the conversation history for context * @return the detected intent with extracted keywords */ default IntentDetectionResult detectIntent(String userMessage, List<LlmMessage> history) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 07:04:54 GMT 2026 - 7.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/LlmClientManager.java
* @throws LlmException if LLM is not available */ public IntentDetectionResult detectIntent(final String userMessage) { if (logger.isDebugEnabled()) { logger.debug("[LLM] Delegating detectIntent. llmType={}", getLlmType()); } return getAvailableClient().detectIntent(userMessage); } /** * Detects the intent of a user message with conversation history context.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 11:10:51 GMT 2026 - 17.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java
} return prompt.replace("{{languageInstruction}}", languageInstruction); } // --- Default RAG method implementations --- @Override public IntentDetectionResult detectIntent(final String userMessage) { final long startTime = System.currentTimeMillis(); if (logger.isDebugEnabled()) { logger.debug("[RAG:INTENT] Starting intent detection. userMessage={}", userMessage);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 72K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java
public void test_stripHtmlTags_handlesTagsWithAttributes() { assertEquals("link text", client.testStripHtmlTags("<a href=\"http://example.com\" class=\"link\">link text</a>")); } // ========== detectIntent with history (integration-like) ========== @Test public void test_detectIntent_withHistory_usesStructuredMessages() { // Set up chat to return a valid JSON response
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 07:04:54 GMT 2026 - 53K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/chat/ChatClient.java
session.addMessage(userChatMessage); try { // Intent detection final IntentDetectionResult intentResult = llmClientManager.detectIntent(userMessage, history); if (logger.isDebugEnabled()) { logger.debug("[RAG] Intent detected. intent={}, query={}", intentResult.getIntent(), intentResult.getQuery()); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 56.6K bytes - Click Count (0)