Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for reasoning (0.07 seconds)

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

        }
    
        /**
         * Returns the reasoning for the detected intent.
         *
         * @return the reasoning
         */
        public String getReasoning() {
            return reasoning;
        }
    
        /**
         * Creates a search intent result with a Fess query.
         *
         * @param query the Fess query string
         * @param reasoning the detection reasoning
         * @return the search intent result
         */
    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/test/java/org/codelibs/fess/llm/IntentDetectionResultTest.java

            final IntentDetectionResult result = IntentDetectionResult.search(query, "test reasoning");
    
            assertEquals(ChatIntent.SEARCH, result.getIntent());
            assertEquals(query, result.getQuery());
            assertNull(result.getDocumentUrl());
            assertEquals("test reasoning", result.getReasoning());
        }
    
        @Test
        public void test_search_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)
  3. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                final String reasoning = extractJsonString(response, "reasoning");
    
                if (intent == ChatIntent.SEARCH) {
                    return IntentDetectionResult.search(query, reasoning);
                } else if (intent == ChatIntent.FAQ) {
                    return IntentDetectionResult.faq(query, reasoning);
                } else if (intent == ChatIntent.SUMMARY) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java

        @Test
        public void test_detectIntent_withHistory_usesStructuredMessages() {
            // Set up chat to return a valid JSON response
            client.setChatResponse("{\"intent\":\"search\",\"query\":\"Fess Docker\",\"reasoning\":\"Follow-up about Docker\"}");
    
            final List<LlmMessage> history = new ArrayList<>();
            history.add(LlmMessage.user("What is Fess?"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 53K bytes
    - Click Count (0)
  5. scripts/general-llm-prompt.md

    then KEEP those additional abbr elements in the translation. Do not remove them. Except when you remove the whole sentence from the translation, because the whole sentence was removed from the English text, then also remove the abbr element. The reasoning for this rule is, that such additional abbr elements are manually added by the human editor of the translation, in order to translate or explain an English word to the human readers of the translation. These additional abbr elements would not make...
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Mar 18 10:55:36 GMT 2026
    - 14.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/chat/ChatClient.java

                callback.onPhaseComplete(ChatPhaseCallback.PHASE_INTENT);
    
                if (logger.isDebugEnabled()) {
                    logger.debug("[RAG] Phase {} completed. intent={}, query={}, reasoning={}, phaseElapsedTime={}ms",
                            ChatPhaseCallback.PHASE_INTENT, intentResult.getIntent(), intentResult.getQuery(), intentResult.getReasoning(),
                            System.currentTimeMillis() - phaseStartTime);
    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)
Back to Top