Prompt-driven guide for building multimodal search using Gemini Embedding 2 + Pinecone + Claude Code. Includes example data (NASA public domain), step-by-step prompts, concepts explainer, cost breakdown, and troubleshooting guide.
69 lines
1.9 KiB
Markdown
69 lines
1.9 KiB
Markdown
# Prompt 4: Improve and Iterate
|
|
|
|
These are prompts for when you want to make the search better.
|
|
Use whichever ones are relevant to you.
|
|
|
|
---
|
|
|
|
## If search results are not relevant enough
|
|
|
|
```
|
|
The search results are not matching my questions well.
|
|
Can you add a re-ranking step? After getting the top 10 results
|
|
from Pinecone, use Claude to re-rank them by relevance to my
|
|
actual question, then show the top 5.
|
|
```
|
|
|
|
## If you want to add your own files
|
|
|
|
```
|
|
I want to add more files to the search index. I have put new
|
|
files in example-data/. Please:
|
|
1. Check which files are new (not already in Pinecone)
|
|
2. Process only the new files
|
|
3. Add their embeddings to the existing index
|
|
4. Show me what was added
|
|
```
|
|
|
|
## If you want better image descriptions
|
|
|
|
```
|
|
Look at the images in example-data/ and suggest improved
|
|
descriptions for any that could be more detailed. Show me
|
|
the current description and your suggested improvement
|
|
side by side. Do not update descriptions.md until I approve.
|
|
```
|
|
|
|
## If you want to add a video clip
|
|
|
|
```
|
|
I have added a short video file (MP4, under 2 minutes) to
|
|
example-data/. Please:
|
|
1. Extract key frames from the video
|
|
2. Generate descriptions for each key frame
|
|
3. Add these descriptions as searchable chunks in Pinecone
|
|
4. Link them back to the video file with timestamps
|
|
```
|
|
|
|
## If you want to export or share
|
|
|
|
```
|
|
I want to share this search app with someone else. Can you:
|
|
1. Create a README with setup instructions
|
|
2. Make sure the .env.template has all required variables
|
|
3. Add a "first run" script that handles ingestion automatically
|
|
4. Package it so someone can clone the repo and get started
|
|
with just their own API keys
|
|
```
|
|
|
|
## If something is broken
|
|
|
|
```
|
|
[Paste the exact error message here]
|
|
|
|
This happened when I tried to [describe what you did].
|
|
Can you diagnose and fix the issue?
|
|
```
|
|
|
|
The key to good results with Claude Code: be specific about
|
|
what you see and what you expected to see instead.
|