Spaces:
Sleeping
Sleeping
Download old/api/classes/__init__.py from harshvisualz/vgecbot: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/harshvisualz/vgecbot/resolve/main/old/api/classes/__init__.py
- Command line
-
hf download hf://spaces/harshvisualz/vgecbot/old/api/classes/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/harshvisualz/vgecbot/resolve/main/old/api/classes/__init__.py
560 Bytes
| from pydantic import BaseModel, Field | |
| from typing import List, Optional, Literal, Annotated, Dict, Any | |
| class RagRequest(BaseModel): | |
| question: Annotated[str, Field(min_length=1, description="Question that user wants to ask")] | |
| history: Annotated[Optional[List[str]], Field(default=[], description="Previously Asked Questions")] | |
| class deleteDocs(BaseModel): | |
| docs: Annotated[List[str], Field(min_length=1, description="List of IDs that you want to delete!")] | |
| class DocumentType(BaseModel): | |
| id: str | |
| metadata: Dict[str, Any] | |
| document: str | |