Package dev.langchain4j.rag.content
Interface Content
- All Known Implementing Classes:
DefaultContent
public interface Content
Represents content relevant to a user
Currently, it is limited to text content (i.e.,
Query
with the potential to enhance and ground the LLM's response.
Currently, it is limited to text content (i.e.,
TextSegment
),
but future expansions may include support for other modalities (e.g., images, audio, video, etc.).- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Content
from
(TextSegment textSegment) static Content
from
(TextSegment textSegment, Map<ContentMetadata, Object> metadata) static Content
metadata()
-
Method Details
-
textSegment
TextSegment textSegment() -
metadata
Map<ContentMetadata,Object> metadata() -
from
-
from
-
from
-