- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for Faq (0.01 seconds)
-
src/main/java/org/codelibs/fess/llm/IntentDetectionResult.java
} /** * Creates a FAQ intent result with a Fess query. * * @param query the Fess query string * @param reasoning the detection reasoning * @return the FAQ intent result */ public static IntentDetectionResult faq(final String query, final String reasoning) { return new IntentDetectionResult(ChatIntent.FAQ, query, null, reasoning); } /**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/ChatIntentTest.java
} @Test public void test_fromValue_faq() { assertEquals(ChatIntent.FAQ, ChatIntent.fromValue("faq")); assertEquals(ChatIntent.FAQ, ChatIntent.fromValue("FAQ")); assertEquals(ChatIntent.FAQ, ChatIntent.fromValue("Faq")); } @Test public void test_fromValue_unclear() { assertEquals(ChatIntent.UNCLEAR, ChatIntent.fromValue("unclear"));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 01 08:11:18 GMT 2026 - 3.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/ChatIntent.java
/** User wants to search for documents in Fess */ SEARCH("search"), /** User wants a summary of a specific document */ SUMMARY("summary"), /** User is asking a FAQ-type question */ FAQ("faq"), /** Intent is unclear - need to ask user for clarification */ UNCLEAR("unclear"); private final String value; ChatIntent(final String value) { this.value = value;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) -
src/test/java/org/codelibs/fess/llm/IntentDetectionResultTest.java
final String query = "+Docker (install OR setup)"; 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) -
src/main/java/org/codelibs/fess/llm/LlmClient.java
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/AbstractLlmClient.java
throw new LlmException("summarySystemPrompt is not configured for " + getName()); } return summarySystemPrompt; } /** * Gets the system prompt for FAQ answer generation. * * @return the FAQ answer system prompt */ protected String getFaqAnswerSystemPrompt() { if (faqAnswerSystemPrompt == null) {
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/LlmClientManager.java
} getAvailableClient().generateSummaryResponse(userMessage, documents, history, callback); } /** * Generates an FAQ answer using document content (streaming). * * @param userMessage the user's message * @param documents the documents with content * @param history the conversation historyCreated: 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
client.setChatResponse("{\"intent\":\"faq\",\"query\":\"Fess features\",\"reasoning\":\"FAQ question\"}"); // Call the original single-arg method final IntentDetectionResult result = client.detectIntent("What are Fess features?"); assertEquals(ChatIntent.FAQ, result.getIntent()); assertEquals("Fess features", 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
return new ChatResult(session.getSessionId(), assistantMessage, Collections.emptyList()); } // For SUMMARY intent, search by URL; for SEARCH/FAQ, search with query ChatSearchResult searchResult; if (intentResult.getIntent() == ChatIntent.SUMMARY && StringUtil.isNotBlank(intentResult.getDocumentUrl())) {
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)