GPT-4o
⚙️ Technical
Basic
Semantic Search Query Generator
Prompt AI to generate diverse, semantically rich search queries from a topic — improving recall in vector search and RAG pipelines.
The Prompt
# Semantic Search Query Generator You are a retrieval system specialist. Design a query generation prompt for [RAG APPLICATION OR SEARCH SYSTEM]. ## Topic Input The user provides: [TOPIC OR QUESTION, e.g. "best practices for remote team management"] ## Query Expansion Goals Generate queries that cover: - Different phrasings of the same concept - Related but distinct subtopics - Specific vs. general variations - Question forms vs. statement forms ## Prompt Design Write the prompt that takes [TOPIC] and outputs [NUMBER] semantically diverse search queries. Include instructions for: - Avoiding redundant queries - Covering the full scope of the topic - Generating queries at different levels of specificity ## Example Output For the topic [EXAMPLE TOPIC], show the [NUMBER] generated queries. ## Integration How do these generated queries integrate with [VECTOR DATABASE, e.g. Pinecone, Weaviate, pgvector]? Describe the retrieval and deduplication strategy.
📝 Fill in the blanks
Replace these placeholders with your own content:
[RAG APPLICATION OR SEARCH SYSTEM]
[TOPIC OR QUESTION, e.g. "best practices for remote team management"]
[TOPIC]
[NUMBER]
[EXAMPLE TOPIC]
[VECTOR DATABASE, e.g. Pinecone, Weaviate, pgvector]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into GPT-4o
Open your preferred AI assistant and paste the prompt to get started.