Spaces:
Paused
Paused
Download backend/open_webui/retrieval/vector/main.py from priaansh/Open-WebUI: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/priaansh/Open-WebUI/resolve/main/backend/open_webui/retrieval/vector/main.py
- Command line
-
hf download hf://spaces/priaansh/Open-WebUI/backend/open_webui/retrieval/vector/main.py
-
curl -L -o main.py https://huggingface.co/spaces/priaansh/Open-WebUI/resolve/main/backend/open_webui/retrieval/vector/main.py
404 Bytes
| from pydantic import BaseModel | |
| from typing import Optional, List, Any | |
| class VectorItem(BaseModel): | |
| id: str | |
| text: str | |
| vector: List[float | int] | |
| metadata: Any | |
| class GetResult(BaseModel): | |
| ids: Optional[List[List[str]]] | |
| documents: Optional[List[List[str]]] | |
| metadatas: Optional[List[List[Any]]] | |
| class SearchResult(GetResult): | |
| distances: Optional[List[List[float | int]]] | |