You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

context_entities.py 202B

123456789101112
  1. from typing import Optional
  2. from pydantic import BaseModel
  3. class DocumentContext(BaseModel):
  4. """
  5. Model class for document context.
  6. """
  7. content: str
  8. score: Optional[float] = None