Skip to main content

Gemini Integration

How Simili Bot uses Google Gemini for AI analysis.

Services

Simili Bot uses Gemini for:
  1. Text Embeddings - Convert text to vectors for semantic search
  2. LLM Analysis - AI reasoning, duplicate detection, routing, and triage

Embeddings

gemini-embedding-001

Default embedding model in v0.2.0:
Use Cases:
  • Convert issue text to vector for similarity search
  • Generate embeddings for all issues during bulk indexing
  • Embed PR content (title + body + changed files) for PR duplicate detection
Cost: Refer to the Google AI pricing page for current rates.
v0.1.0 used text-embedding-004 (768 dimensions). v0.2.0 uses gemini-embedding-001 (3072 dimensions). If you’re migrating from v0.1.0, you must re-index your collection after updating.

LLM analysis

Default LLM model: gemini-2.5-flash

1. Duplicate detection

2. Quality assessment

3. Issue routing

4. Auto triage

Models

Configuration

API quotas

Free Tier:
  • Embeddings: 50 requests/minute
  • LLM Calls: 15 requests/minute
  • Generous monthly limits
Paid:
  • Pay-as-you-go
  • Higher rate limits available

Error handling

Graceful degradation if Gemini is unavailable:
Simili Bot uses exponential backoff retry (typed errors) for transient failures.

Performance

Typical latencies:
  • Embedding request: 200-500ms
  • LLM analysis: 2-5 seconds
  • Batch embedding: 500ms-2s
Bottleneck is usually external API calls.

Migration from v0.1.0

If upgrading from v0.1.0, update your simili.yaml:
Then re-index your collection:
The Qdrant collection dimension cannot be changed in-place. Delete and recreate the collection, or create a new one with a different name.

Next steps

Gemini configuration

Setup Gemini for Simili Bot

OpenAI integration

Use OpenAI as an alternative