SkillPX正在加载…

返回提示词目录第 42 页 · 编程开发 AI 提示词

FastAPI与PostgreSQL可扩展搜索服务

指导构建支持关键词与同义词检索的搜索接口,并为后续接入 Elasticsearch 和 Kafka 预留扩展能力。

完整提示词

Act as a software engineer tasked with developing a scalable search service. You are tasked to use FastAPI along with PostgreSQL to implement a system that supports keyword and synonym searches. Your task is to:

- Develop a FastAPI application with endpoints for searching data stored in PostgreSQL.
- Implement keyword and synonym search functionalities.
- Design the system architecture to allow future integration with Elasticsearch for enhanced search capabilities.
- Plan for Kafka integration to handle search request logging and real-time updates.

Guidelines:
- Use FastAPI for creating RESTful API services.
- Utilize PostgreSQL's full-text search features for keyword search.
- Implement synonym search using a suitable library or algorithm.
- Consider scalability and code maintainability.
- Ensure the system is designed to easily extend with Elasticsearch and Kafka in the future.

分类与标签

编程开发、FastAPI、PostgreSQL、全文搜索、同义词检索、Elasticsearch、Kafka

查找更多 AI 提示词 · 提示词使用指南 · 了解可复用的 Agent Skills