Skip to content

Feature/search - #7

Merged
Flatts3000 merged 5 commits into
developfrom
feature/search
Oct 2, 2025
Merged

Feature/search#7
Flatts3000 merged 5 commits into
developfrom
feature/search

Conversation

@Flatts3000

Copy link
Copy Markdown
Owner

No description provided.

…tions

Integrated Qdrant service for semantic search functionality. Enhanced WordPress and MySQL configurations with additional environment variables and memory limits. Updated health checks and replaced outdated defaults for improved reliability.
…ic similarity search

Introduced a new plugin, `PostSecret Search`, for semantic similarity searches leveraging the Qdrant vector database. Added primary functionality for processing embeddings and similarity matching, along with a MySQL fallback for robust operation. Enhanced the `EmbeddingService` with Qdrant support, payload extensibility, and improved logging. Integrated REST endpoints and admin capabilities for future enhancements.
…ling, and type safety

Improved QdrantSearchService by introducing stricter typing, a refined filter schema for Qdrant queries, and defensive error handling. Added MySQL fallback enhancements, over-fetching logic, and extensibility hooks for query customization. Updated methods for better modularity, readability, and adherence to coding standards.
…ation

Integrated a new semantic search interface in the theme using dynamic query embedding, responsive design, and infinite scrolling for results. Added REST API endpoints via the `PostSecret Search` plugin to handle embedding-based searches. Enhanced EmbeddingService with query embedding and immediate indexing support. Updated Docker configurations and templates for streamlined deployment and setup.
@Flatts3000
Flatts3000 requested a review from Copilot October 2, 2025 21:44
@Flatts3000 Flatts3000 self-assigned this Oct 2, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a comprehensive semantic search feature that enables users to search for secrets using natural language queries. The search uses AI embeddings to find semantically similar content rather than relying on exact keyword matches.

Key changes:

  • Added semantic search functionality with OpenAI embeddings and Qdrant vector database
  • Implemented a new search interface that replaces the traditional WordPress search
  • Created supporting infrastructure including CSS, JavaScript, and API endpoints

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
wp-content/themes/postsecret/search.php Replaced traditional search results template with semantic search results display
wp-content/themes/postsecret/parts/header.html Added custom semantic search form to replace default WordPress search
wp-content/themes/postsecret/functions.php Added semantic search asset enqueuing and removed old search enhancement script
wp-content/themes/postsecret/assets/js/semantic-search.js New JavaScript module handling search form validation, API calls, and infinite scroll
wp-content/themes/postsecret/assets/css/semantic-search.css New stylesheet for semantic search interface styling
wp-content/plugins/postsecret-search/src/QdrantSearchService.php New service class for Qdrant vector database operations
wp-content/plugins/postsecret-search/postsecret-search.php New plugin providing REST API endpoints for semantic search
wp-content/plugins/postsecret-feed/postsecret-feed.php Modified to exclude search pages from front-page stream loading
wp-content/plugins/postsecret-ai/src/EmbeddingService.php Enhanced embedding service with Qdrant integration and improved functionality
docker-compose.yml Added Qdrant service and environment configuration for development

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread wp-content/themes/postsecret/assets/js/semantic-search.js
Comment thread wp-content/plugins/postsecret-search/postsecret-search.php Outdated
Comment thread wp-content/plugins/postsecret-ai/src/EmbeddingService.php Outdated
Comment thread wp-content/plugins/postsecret-search/src/QdrantSearchService.php Outdated
Comment thread wp-content/themes/postsecret/assets/css/semantic-search.css
…ed defaults, and modular logic

Reduced redundancy and enhanced readability by simplifying method definitions and consolidating constants. Improved default handling for timeouts, settings, and Qdrant configurations while introducing modular options for extensibility. Enhanced error logging and streamlined the fallback logic for MySQL and API requests.
@Flatts3000
Flatts3000 requested a review from Copilot October 2, 2025 22:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread wp-content/plugins/postsecret-ai/src/EmbeddingService.php
Comment thread wp-content/plugins/postsecret-ai/src/EmbeddingService.php
Comment thread wp-content/plugins/postsecret-search/postsecret-search.php
Comment thread wp-content/themes/postsecret/assets/css/semantic-search.css
@Flatts3000
Flatts3000 merged commit 6551dcd into develop Oct 2, 2025
@Flatts3000
Flatts3000 deleted the feature/search branch October 2, 2025 22:03
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.

2 participants