feat: 接入PostgreSQL数据库实现数据持久化
- 将news/batch API从内存存储改为PostgreSQL
- 添加企业实体识别功能(Lagos-inspired)
- 创建三个数据表:news_articles, risk_analyses, entity_mentions
- 实现分页和过滤功能
- 支持在新闻中搜索企业实体
- 添加完整的测试脚本和文档
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b02f3bab5b
commit
5bc1f1299e
8 changed files with 974 additions and 68 deletions
5
.env.example
Normal file
5
.env.example
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# PostgreSQL Database Configuration
|
||||
DATABASE_URL=postgresql://user:password@localhost:5432/perplexica
|
||||
|
||||
# Example with actual values:
|
||||
# DATABASE_URL=postgresql://postgres:postgres@localhost:5432/perplexica_db
|
||||
Loading…
Add table
Add a link
Reference in a new issue