mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-07 22:36:02 +00:00
fix: modify rag database
This commit is contained in:
@@ -11,7 +11,8 @@ class KnowledgeBase(Base):
|
||||
name = Column(String, index=True)
|
||||
description = Column(Text)
|
||||
created_at = Column(DateTime, default=datetime.utcnow)
|
||||
|
||||
embedding_model = Column(String, default="") # 默认嵌入模型
|
||||
top_k = Column(Integer, default=5) # 默认返回的top_k数量
|
||||
files = relationship("File", back_populates="knowledge_base")
|
||||
|
||||
class File(Base):
|
||||
|
||||
Reference in New Issue
Block a user