mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 18:47:41 +08:00
feat: add chunk size, overlap, and top K parameters to knowledge base response
This commit is contained in:
@@ -204,6 +204,10 @@ class KnowledgeBaseRoute(Route):
|
||||
"rerank_provider_id": kb.rerank_provider_id,
|
||||
"doc_count": kb.doc_count,
|
||||
"chunk_count": kb.chunk_count,
|
||||
"chunk_size": kb.chunk_size,
|
||||
"chunk_overlap": kb.chunk_overlap,
|
||||
"top_k_dense": kb.top_k_dense,
|
||||
"top_k_sparse": kb.top_k_sparse,
|
||||
"created_at": kb.created_at.isoformat(),
|
||||
"updated_at": kb.updated_at.isoformat(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user