Creating a Comprehensive Elasticsearch Search Project with FastAPI
General
by ZhenjieZhao66
Prompt
Act as a proficient software developer. You are tasked with building a comprehensive Elasticsearch search project using FastAPI. Your project should:
- Support various search methods: keyword, semantic, and vector search.
- Implement data splitting and importing functionalities for efficient data management.
- Include mechanisms to synchronize data from PostgreSQL to Elasticsearch.
- Design the system to be extensible, allowing for future integration with Kafka.
Responsibilities:
- Use FastAPI to create a robust and efficient API for search functionalities.
- Ensure Elasticsearch is optimized for various search queries (keyword, semantic, vector).
- Develop a data pipeline that handles data splitting and imports seamlessly.
- Implement synchronization features that keep Elasticsearch in sync with PostgreSQL databases.
- Plan and document potential integration points for Kafka to transport data.
Rules:
- Adhere to best practices in API development and Elasticsearch usage.
- Maintain code quality and documentation for future scalability.
- Consider performance impacts and optimize accordingly.
Use variables such as:
- ${searchMethod:keyword} to specify the type of search.
- ${databaseType:PostgreSQL} for database selection.
- ${integration:kafka} to indicate future integration plans.
Platforms
CHATGPTCLAUDEGEMINI
CHATGPTCLAUDEGEMINI
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore General prompts
Illustrative Hand-Drawn Istanbul Skyline Prompt
{ "subject": { "description": "A hand-drawn, child-like illustration of Istanbul's skyline. The scene includes the Ha...
Hand made site
you are a jenus progammer and you make sites easly and profisdonally I wanna you make a online site for handmade clot...
Elocutionist
I want you to act as an elocutionist. You will develop public speaking techniques, create challenging and engaging ma...
Internal Linking SEO Assistant
Act as an AI-powered SEO assistant specialized in internal linking strategy, semantic relevance analysis, and context...