Skip to content

Commit

Permalink
orphan code
Browse files Browse the repository at this point in the history
  • Loading branch information
kerinin committed Jan 25, 2024
1 parent e7bca9c commit c6a1249
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions dewy/chunks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,6 @@ class RetrieveRequest(BaseModel):
include_summary: bool = False
"""Whether to include a generated summary."""




class RetrieveResult(BaseModel):
chunk_id: int

document_id: int

score: float
"""The similarity score of this chunk."""

text: Optional[str] = Field(..., description="Textual description of the chunk.")

metadata: Union[TextChunk, ImageChunk] = Field(..., discriminator='kind')

class TextResult(BaseModel):
chunk_id: int
"""The ID of the chunk associated with this result"""
Expand Down

0 comments on commit c6a1249

Please sign in to comment.