AeroTools
Home AI Prompts Creating a Comprehensive Elast...

Creating a Comprehensive Elasticsearch Search Project with FastAPI

chatgpt development 13 uses
Free
What is this prompt for?

Written for developers: it directs the model to produce, review or debug code with a clear brief instead of a vague request.

What it actually does: Act as a proficient software developer. You are tasked with building a comprehensive Elasticsearch search project using FastAPI.

Main use cases:
  • Reviewing pull requests with practical suggestions
  • Generating clean, readable code
  • Spotting security flaws and fixing bugs
Benefits and results:
  • Code that follows current security practice
  • Generated code that is easy to extend and integrate
  • Less time spent on review inside the team
Prompt length: 179 words Reading time: ~1 min Best with: Claude Sonnet (recommended for code), GPT-4o, GitHub Copilot

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.

Related Prompts

AeroTools

AeroAssistant

Online AI
Hello! I am your official AeroTools AI Assistant. How can I help you use our tools today?