Skip to content

feat(search-v2): add AI-generated function summaries#139

Merged
DevanshuNEU merged 1 commit into
OpenCodeIntel:mainfrom
DevanshuNEU:feat/ai-summaries
Jan 4, 2026
Merged

feat(search-v2): add AI-generated function summaries#139
DevanshuNEU merged 1 commit into
OpenCodeIntel:mainfrom
DevanshuNEU:feat/ai-summaries

Conversation

@DevanshuNEU

Copy link
Copy Markdown
Collaborator

Summary

Adds GPT-4o-mini powered summary generation for functions. Summaries improve search quality by providing semantic context beyond raw code.

Closes #69

Changes

File Description
summary_generator.py Batched summary generation with GPT-4o-mini
indexer_optimized.py Added generate_summaries flag to index_repository_v2()
__init__.py Export new module

Key Features

  • Batched API calls: 10 functions per request
  • Cost optimized: ~$0.60 per 10K functions
  • Error handling: Graceful fallback on API failures
  • Optional: index_repository_v2(generate_summaries=True)

Test Results

8 passed in 0.16s

Part of Search V2 Epic

Closes OpenCodeIntel#69

Add GPT-4o-mini powered summary generation:

- SummaryGenerator with batched API calls (10 funcs per request)
- ~$0.60 per 10K functions cost optimization
- Summaries stored in Pinecone metadata
- Summaries included in embedding text for semantic search
- Optional flag on index_repository_v2(generate_summaries=True)
- 8 tests passing

Part 2 of 4 in Search V2 epic.
@vercel

vercel Bot commented Jan 4, 2026

Copy link
Copy Markdown

@DevanshuNEU is attempting to deploy a commit to the Dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jan 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Review Updated (UTC)
opencodeintel Ignored Ignored Preview Jan 4, 2026 9:36pm

@DevanshuNEU DevanshuNEU merged commit 961e8c0 into OpenCodeIntel:main Jan 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(search): Generate natural language descriptions for code

1 participant