- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for IntentDetectionResult (0.09 seconds)
-
src/main/java/org/codelibs/fess/llm/IntentDetectionResult.java
return new IntentDetectionResult(ChatIntent.UNCLEAR, null, null, reasoning); } /** * Creates a fallback search intent when intent detection fails. * * @param originalMessage the original user message * @return the fallback search intent result */ public static IntentDetectionResult fallbackSearch(final String originalMessage) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 07 13:27:59 GMT 2026 - 4.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/llm/IntentDetectionResultTest.java
@Test public void test_search_withEmptyQuery() { final IntentDetectionResult result = IntentDetectionResult.search("", "test"); assertEquals(ChatIntent.SEARCH, result.getIntent()); assertEquals("", result.getQuery()); } @Test public void test_search_withNullQuery() { final IntentDetectionResult result = IntentDetectionResult.search(null, "test");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 07 13:27:59 GMT 2026 - 8.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java
return IntentDetectionResult.search(query, reasoning); } else if (intent == ChatIntent.FAQ) { return IntentDetectionResult.faq(query, reasoning); } else if (intent == ChatIntent.SUMMARY) { final String docUrl = extractJsonString(response, "url"); return IntentDetectionResult.summary(docUrl, reasoning); } else {
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/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 */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
* * @param userMessage the user's message * @return the detected intent with extracted keywords * @throws LlmException if LLM is not available */ public IntentDetectionResult detectIntent(final String userMessage) { if (logger.isDebugEnabled()) { logger.debug("[LLM] Delegating detectIntent. llmType={}", getLlmType()); }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/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java
final List<LlmMessage> history = new ArrayList<>(); history.add(LlmMessage.user("What is Fess?")); history.add(LlmMessage.assistant("Fess is an enterprise search server.")); final IntentDetectionResult result = client.detectIntent("How about Docker?", history); assertEquals(ChatIntent.SEARCH, result.getIntent()); assertEquals("Fess Docker", result.getQuery());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
import org.codelibs.fess.entity.SearchRenderData; import org.codelibs.fess.entity.SearchRequestParams; import org.codelibs.fess.helper.MarkdownRenderer; import org.codelibs.fess.llm.ChatIntent; import org.codelibs.fess.llm.IntentDetectionResult; import org.codelibs.fess.llm.LlmChatResponse; import org.codelibs.fess.llm.LlmClient; import org.codelibs.fess.llm.LlmClientManager; import org.codelibs.fess.llm.LlmException; import org.codelibs.fess.llm.LlmMessage;
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)