| Package | Description |
|---|---|
| dev.langchain4j.data.document | |
| dev.langchain4j.data.segment |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
Metadata.add(String key,
Object value) |
Metadata |
Metadata.copy() |
static Metadata |
Metadata.from(String key,
Object value) |
Metadata |
DocumentSource.metadata()
Returns the metadata associated with the source of the document.
|
Metadata |
Document.metadata() |
static Metadata |
Metadata.metadata(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
static Document |
Document.document(String text,
Metadata metadata) |
static Document |
Document.from(String text,
Metadata metadata) |
void |
Metadata.mergeFrom(Metadata other) |
| Constructor and Description |
|---|
Document(String text,
Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
TextSegment.metadata() |
| Modifier and Type | Method and Description |
|---|---|
static TextSegment |
TextSegment.from(String text,
Metadata metadata) |
static TextSegment |
TextSegment.textSegment(String text,
Metadata metadata) |
| Constructor and Description |
|---|
TextSegment(String text,
Metadata metadata) |
Copyright © 2023. All rights reserved.