Langchain-Chatchat/server/knowledge_base/model/kb_document_model.py

11 lines
170 B
Python

from langchain.docstore.document import Document
class DocumentWithVSId(Document):
"""
矢量化后的文档
"""
id: str = None
score: float = 3.0