Package org.codelibs.fess.entity
Class ChatMessage.ChatSource
java.lang.Object
org.codelibs.fess.entity.ChatMessage.ChatSource
- All Implemented Interfaces:
Serializable
- Enclosing class:
ChatMessage
Represents a source document referenced in the chat response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ChatSource(int index, Map<String, Object> doc) Creates a new chat source from a document map. -
Method Summary
Modifier and TypeMethodDescriptiongetDocId()Gets the document ID.intgetIndex()Gets the source index.Gets the source snippet.getTitle()Gets the source title.getUrl()Gets the source URL.voidSets the document ID.voidsetIndex(int index) Sets the source index.voidsetSnippet(String snippet) Sets the source snippet.voidSets the source title.voidSets the source URL.
-
Constructor Details
-
ChatSource
public ChatSource()Default constructor. -
ChatSource
Creates a new chat source from a document map.- Parameters:
index- the source indexdoc- the document map containing source data
-
-
Method Details
-
getIndex
public int getIndex()Gets the source index.- Returns:
- the source index
-
setIndex
public void setIndex(int index) Sets the source index.- Parameters:
index- the source index
-
getTitle
Gets the source title.- Returns:
- the source title
-
setTitle
Sets the source title.- Parameters:
title- the source title
-
getUrl
Gets the source URL.- Returns:
- the source URL
-
setUrl
Sets the source URL.- Parameters:
url- the source URL
-
getDocId
Gets the document ID.- Returns:
- the document ID
-
setDocId
Sets the document ID.- Parameters:
docId- the document ID
-
getSnippet
Gets the source snippet.- Returns:
- the source snippet
-
setSnippet
Sets the source snippet.- Parameters:
snippet- the source snippet
-