feat: persist isolated vector snapshots and exact retrieval
This commit is contained in:
@@ -50,6 +50,7 @@ class Chunk(Base):
|
||||
__tablename__ = "chunks"
|
||||
__table_args__ = (
|
||||
UniqueConstraint("index_version_id", "knowledge_id", "ordinal", name="uq_chunk_position"),
|
||||
UniqueConstraint("id", "index_version_id", name="uq_chunk_text_scope"),
|
||||
CheckConstraint("start_offset >= 0 AND end_offset > start_offset", name="ck_chunk_offsets"),
|
||||
)
|
||||
id: Mapped[str] = mapped_column(String(36), primary_key=True)
|
||||
|
||||
Reference in New Issue
Block a user