mirror of
https://github.com/langgenius/dify.git
synced 2026-02-02 17:11:17 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: Yansong Zhang <916125788@qq.com> Co-authored-by: hj24 <mambahj24@gmail.com> Co-authored-by: CodingOnStar <hanxujiang@dify.ai> Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
26 lines
774 B
Python
26 lines
774 B
Python
from typing import Any
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class RetrievalSourceMetadata(BaseModel):
|
|
position: int | None = None
|
|
dataset_id: str | None = None
|
|
dataset_name: str | None = None
|
|
document_id: str | None = None
|
|
document_name: str | None = None
|
|
data_source_type: str | None = None
|
|
segment_id: str | None = None
|
|
retriever_from: str | None = None
|
|
score: float | None = None
|
|
hit_count: int | None = None
|
|
word_count: int | None = None
|
|
segment_position: int | None = None
|
|
index_node_hash: str | None = None
|
|
content: str | None = None
|
|
page: int | None = None
|
|
doc_metadata: dict[str, Any] | None = None
|
|
title: str | None = None
|
|
files: list[dict[str, Any]] | None = None
|
|
summary: str | None = None
|