INNER CODE UNIT · Python

RetrieveResponse

pathwaycom/llm-app · serviette/server/main.py:60

class RetrieveResponse(BaseModel):
    results: list[RetrieveResult]


class DocumentEntry(BaseModel):
    id: str
    name: str
    metadata: dict[str, Any] = Field(default_factory=dict)
    chunks: int


class DocumentsResponse(BaseModel):
    """``GET /api/v1/documents``: the indexed documents whose name or path
    contains ``q``. The list is left out when more than ``limit`` match —
    the caller narrows the search instead of rendering thousands of rows."""

    total: int  # documents in the index
    matched: int  # of them, matching the filter

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…