Feature/search - #7
Merged
Merged
Conversation
…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.
Contributor
There was a problem hiding this comment.
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.
…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.
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.