Spaces:
Runtime error
Runtime error
Download backend/app/models/document.py from JenishMakwana/RAG: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/JenishMakwana/RAG/resolve/main/backend/app/models/document.py
- Command line
-
hf download hf://spaces/JenishMakwana/RAG/backend/app/models/document.py
-
curl -L -o document.py https://huggingface.co/spaces/JenishMakwana/RAG/resolve/main/backend/app/models/document.py
530 Bytes
| from sqlalchemy import Column, Integer, String, DateTime, Float | |
| from datetime import datetime | |
| from ..db.base_class import Base | |
| class Document(Base): | |
| __tablename__ = "documents" | |
| id = Column(Integer, primary_key=True, index=True) | |
| user_id = Column(String, index=True) | |
| session_id = Column(String, index=True, nullable=True) | |
| filename = Column(String) | |
| upload_date = Column(DateTime, default=datetime.utcnow) | |
| chunk_count = Column(Integer, nullable=True) | |
| embed_time_seconds = Column(Float, nullable=True) | |