프롬프트 도감 › No.2058
검색 서비스 만들기
FastAPI Search Service
FastAPI와 PostgreSQL로 키워드·비슷한말 검색이 되는 서비스 설계와 코드를 AI가 만들어줘요. 나중에 Elasticsearch와 Kafka를 붙일 수 있게 구조도 잡아줘요.
이럴 때 검색 기능 개발, 백엔드 공부, 사이드 프로젝트 뼈대
도구 ChatGPT · Claude · Gemini
프롬프트
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.
팁
- 쓰는 데이터 종류를 먼저 알려주세요
- 한 번에 한 기능씩 나눠 요청해요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: ZhenjieZhao66.