Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1022 B
Raw Blame
from typing import Any

from dify_agent.protocol.knowledge_fs import KnowledgeFsCitation
from pydantic import BaseModel


class RetrievalSourceMetadata(BaseModel):
    knowledge_fs_citation: KnowledgeFsCitation | None = None
    position: int | None = None
    dataset_id: str | None = None
    dataset_name: str | None = None
    document_id: str | None = None
    document_asset_id: str | None = None
    document_name: str | None = None
    document_revision: int | None = None
    document_version: int | 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