- Added a new visitor chat API endpoint (`/api/chat/visitor`) to allow unauthenticated users to engage in conversations without requiring customer data. - Introduced a visitor context dependency to manage visitor interactions seamlessly. - Enhanced the chat API to support explicit session termination and improved response handling for customer service interactions. - Updated the database configuration to include Redis client support for caching visitor data. - Added a new customer note repository to persist user notes independently of the L1 profile slots. This update significantly improves the customer service experience by enabling visitor interactions and ensuring efficient data handling for both registered and unregistered users.
16 lines
524 B
PowerShell
16 lines
524 B
PowerShell
#Requires -Version 5.1
|
|
# 知识库入库脚本:解析桌面知识库 → 向量化 → 存入 Milvus
|
|
param([switch]$Rebuild)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$Root = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
|
|
Set-Location $Root
|
|
|
|
Write-Host "=== 知识库入库 ===" -ForegroundColor Cyan
|
|
python scripts/kb/build_collections.py $(if ($Rebuild) { "--rebuild" })
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "入库失败!" -ForegroundColor Red
|
|
exit 1
|
|
}
|
|
Write-Host "=== 入库完成 ===" -ForegroundColor Green
|