mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-16 08:25:18 +02:00
feat: add full document mode in knowledge base
This commit is contained in:
parent
c085398933
commit
87c8c5e2c8
26 changed files with 1144 additions and 351 deletions
|
|
@ -940,6 +940,14 @@ class KnowledgeBaseDocumentModel(Base):
|
|||
file_hash = Column(String(64), nullable=True) # SHA-256 hash for deduplication
|
||||
mime_type = Column(String(100), nullable=True)
|
||||
|
||||
# Retrieval mode: "chunked" (vector search) or "full_document" (return full text)
|
||||
retrieval_mode = Column(
|
||||
String(20), nullable=False, default="chunked", server_default="chunked"
|
||||
)
|
||||
full_text = Column(
|
||||
Text, nullable=True
|
||||
) # Stored when retrieval_mode is "full_document"
|
||||
|
||||
# Processing metadata
|
||||
source_url = Column(String, nullable=True) # If document was fetched from URL
|
||||
total_chunks = Column(Integer, nullable=False, default=0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue