feat: add knowledge management functionality with CRUD operations and database schema
- Implemented KnowledgeHandler for managing knowledge groups and items, including listing, creating, updating, and deleting operations. - Added database migration scripts to create necessary tables for knowledge management, including knowledge_groups, knowledge_items, knowledge_parse_tasks, and knowledge_chunks_meta. - Introduced prompt_rule_knowledge_groups table to associate prompt rules with knowledge groups.
This commit is contained in:
@@ -16,6 +16,22 @@ redis:
|
||||
addr: localhost:6379
|
||||
db: 0
|
||||
|
||||
qdrant:
|
||||
url: localhost:6334
|
||||
api_key: ""
|
||||
collection: geo_knowledge_chunks
|
||||
timeout: 15s
|
||||
|
||||
object_storage:
|
||||
provider: minio
|
||||
endpoint: localhost:9000
|
||||
access_key: minioadmin
|
||||
secret_key: minioadmin
|
||||
bucket: geo-private
|
||||
use_ssl: false
|
||||
public_base_url: ""
|
||||
region: ""
|
||||
|
||||
cache:
|
||||
driver: redis
|
||||
|
||||
@@ -39,6 +55,21 @@ llm:
|
||||
reasoning_effort: minimal
|
||||
web_search_limit: 3
|
||||
|
||||
retrieval:
|
||||
provider: siliconflow
|
||||
base_url: https://api.siliconflow.cn/v1
|
||||
api_key: "sk-dikvcafrdcbajjpfgjjephqcggpdxwxdkighllieijlehwsf"
|
||||
embedding_model: BAAI/bge-m3
|
||||
reranker_model: BAAI/bge-reranker-v2-m3
|
||||
timeout: 30s
|
||||
chunk_size: 900
|
||||
chunk_overlap: 120
|
||||
embedding_batch_size: 16
|
||||
recall_limit: 12
|
||||
rerank_top_n: 6
|
||||
max_chunks_per_doc: 6
|
||||
overlap_tokens: 60
|
||||
|
||||
generation:
|
||||
queue_size: 128
|
||||
worker_concurrency: 1
|
||||
|
||||
Reference in New Issue
Block a user