Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 538 for intent (0.05 seconds)

  1. src/main/java/org/codelibs/fess/llm/IntentDetectionResult.java

            this.intent = intent;
            this.query = query;
            this.documentUrl = documentUrl;
            this.reasoning = reasoning;
        }
    
        /**
         * Returns the detected intent type.
         *
         * @return the intent type
         */
        public ChatIntent getIntent() {
            return intent;
        }
    
        /**
         * Returns the Fess query string for search.
         *
    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)
  2. src/main/java/org/codelibs/fess/llm/ChatIntent.java

         */
        public static ChatIntent fromValue(final String value) {
            if (value == null) {
                return UNCLEAR;
            }
            for (final ChatIntent intent : values()) {
                if (intent.value.equalsIgnoreCase(value.trim())) {
                    return intent;
                }
            }
            return UNCLEAR;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 01 08:11:18 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/chat/ChatPhaseCallback.java

     */
    public interface ChatPhaseCallback {
    
        /** Phase name for intent detection */
        String PHASE_INTENT = "intent";
    
        /** Phase name for document search */
        String PHASE_SEARCH = "search";
    
        /** Phase name for result evaluation */
        String PHASE_EVALUATE = "evaluate";
    
        /** Phase name for content retrieval */
        String PHASE_FETCH = "fetch";
    
        /** Phase name for answer generation */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:32:04 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                logger.info("[RAG:INTENT] Intent detected. intent={}, query={}, elapsedTime={}ms", result.getIntent(), result.getQuery(),
                        System.currentTimeMillis() - startTime);
                if (logger.isDebugEnabled()) {
                    logger.debug("[RAG:INTENT] Intent detection completed. intent={}, query={}, reasoning={}, elapsedTime={}ms",
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/llm/LlmClient.java

        boolean isAvailable();
    
        // RAG workflow methods
    
        /**
         * Detects the intent of a user message.
         *
         * @param userMessage the user's message
         * @return the detected intent with extracted keywords
         */
        IntentDetectionResult detectIntent(String userMessage);
    
        /**
         * Detects the intent of a user message with conversation history context.
         *
         * @param userMessage the user's message
    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)
  6. src/test/java/org/codelibs/fess/chat/ChatPhaseCallbackTest.java

                public void onPhaseComplete(String phase) {
                    events.add("complete:" + phase);
                }
    
                @Override
                public void onChunk(String content, boolean done) {
                    events.add("chunk:" + content + ":" + done);
                }
    
                @Override
                public void onError(String phase, String errorMessage) {
                    events.add("error:" + phase + ":" + errorMessage);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 12 10:32:40 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/llm/IntentDetectionResultTest.java

            final IntentDetectionResult result = IntentDetectionResult.faq(query, "faq intent");
    
            assertEquals(ChatIntent.FAQ, result.getIntent());
            assertEquals(query, result.getQuery());
            assertNull(result.getDocumentUrl());
            assertEquals("faq intent", result.getReasoning());
        }
    
        @Test
        public void test_faq_withEmptyQuery() {
    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)
  8. src/main/java/org/codelibs/fess/chat/ChatClient.java

            }
            final String content = msg.getContent();
            if (content == null || content.isEmpty()) {
                return suffix;
            }
            final String truncMarker = "... [truncated]";
            final int bodyBudget = Math.max(0, summaryMaxChars - suffix.length() - truncMarker.length());
            if (content.length() <= bodyBudget) {
                return content + suffix;
            }
    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)
  9. src/main/webapp/WEB-INF/orig/view/chat/chat.jsp

    <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
    ${fe:html(true)}
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><la:message key="labels.chat_title" /></title>
    <link href="${fe:url('/css/bootstrap.min.css')}" rel="stylesheet" type="text/css" />
    <link href="${fe:url('/css/style.css')}" rel="stylesheet" type="text/css" />
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:21:57 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/llm/LlmClientManager.java

            }
            return client;
        }
    
        // RAG workflow delegation methods
    
        /**
         * Detects the intent of a user message using the configured LLM client.
         *
         * @param userMessage the user's message
         * @return the detected intent with extracted keywords
         * @throws LlmException if LLM is not available
         */
    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)
Back to Top