diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 0000000..c455c58
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,2 @@
+# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
+* @opensearch-project/search-request-processor-team
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..29eddb9
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,31 @@
+---
+name: ๐ Bug report
+about: Create a report to help us improve
+title: '[BUG]'
+labels: 'bug, untriaged'
+assignees: ''
+---
+
+**What is the bug?**
+A clear and concise description of the bug.
+
+**How can one reproduce the bug?**
+Steps to reproduce the behavior:
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**What is the expected behavior?**
+A clear and concise description of what you expected to happen.
+
+**What is your host/environment?**
+ - OS: [e.g. iOS]
+ - Version [e.g. 22]
+ - Plugins
+
+**Do you have any screenshots?**
+If applicable, add screenshots to help explain your problem.
+
+**Do you have any additional context?**
+Add any other context about the problem.
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..a8199a1
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,7 @@
+contact_links:
+ - name: OpenSearch Community Support
+ url: https://discuss.opendistrocommunity.dev/
+ about: Please ask and answer questions here.
+ - name: AWS/Amazon Security
+ url: https://aws.amazon.com/security/vulnerability-reporting/
+ about: Please report security vulnerabilities here.
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/documentation-issue.md b/.github/ISSUE_TEMPLATE/documentation-issue.md
new file mode 100644
index 0000000..c349056
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/documentation-issue.md
@@ -0,0 +1,11 @@
+**Is your feature request related to a problem?**
+A new feature has been added.
+
+**What solution would you like?**
+Document the usage of the new feature.
+
+**What alternatives have you considered?**
+N/A
+
+**Do you have any additional context?**
+See please
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..6198f33
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,18 @@
+---
+name: ๐ Feature request
+about: Request a feature in this project
+title: '[FEATURE]'
+labels: 'enhancement, untriaged'
+assignees: ''
+---
+**Is your feature request related to a problem?**
+A clear and concise description of what the problem is, e.g. _I'm always frustrated when [...]_
+
+**What solution would you like?**
+A clear and concise description of what you want to happen.
+
+**What alternatives have you considered?**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Do you have any additional context?**
+Add any other context or screenshots about the feature request here.
\ No newline at end of file
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..19cd65f
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,15 @@
+### Description
+[Describe what this change achieves]
+
+### Issues Resolved
+[List any issues this PR will resolve]
+
+### Check List
+- [ ] New functionality includes testing.
+ - [ ] All tests pass
+- [ ] New functionality has been documented.
+ - [ ] New functionality has javadoc added
+- [ ] Commits are signed as per the DCO using --signoff
+
+By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
+For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/k-NN/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).
diff --git a/.github/draft-release-notes-config.yml b/.github/draft-release-notes-config.yml
new file mode 100644
index 0000000..d168727
--- /dev/null
+++ b/.github/draft-release-notes-config.yml
@@ -0,0 +1,40 @@
+# The overall template of the release notes
+template: |
+ Compatible with OpenSearch (**set version here**).
+ $CHANGES
+
+# Setting the formatting and sorting for the release notes body
+name-template: Version (set version here)
+change-template: '* $TITLE (#$NUMBER)'
+sort-by: merged_at
+sort-direction: ascending
+replacers:
+ - search: '##'
+ replace: '###'
+
+# Organizing the tagged PRs into categories
+categories:
+ - title: 'Breaking Changes'
+ labels:
+ - 'Breaking Changes'
+ - title: 'Features'
+ labels:
+ - 'Features'
+ - title: 'Enhancements'
+ labels:
+ - 'Enhancements'
+ - title: 'Bug Fixes'
+ labels:
+ - 'Bug Fixes'
+ - title: 'Infrastructure'
+ labels:
+ - 'Infrastructure'
+ - title: 'Documentation'
+ labels:
+ - 'Documentation'
+ - title: 'Maintenance'
+ labels:
+ - 'Maintenance'
+ - title: 'Refactoring'
+ labels:
+ - 'Refactoring'
\ No newline at end of file
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
new file mode 100644
index 0000000..10fc7d7
--- /dev/null
+++ b/.github/workflows/CI.yml
@@ -0,0 +1,63 @@
+name: Build & Test Search Request Processor
+on:
+ schedule:
+ - cron: '0 0 * * *' # every night
+ push:
+ branches:
+ - "*"
+ - "feature/**"
+ pull_request:
+ branches:
+ - "*"
+ - "feature/**"
+
+jobs:
+ Build-search-request-processor:
+ strategy:
+ matrix:
+ java: [11, 17]
+ os: [ubuntu-latest, macos-latest] # want to get the build running first; fixing windows build after- windows-latest]
+
+ name: Build and Test Search Request Processor Plugin
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - name: Checkout Search Request Processor
+ uses: actions/checkout@v1
+
+ - name: Setup Java ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+
+ - name: Run build
+ run: |
+ ./gradlew build
+
+ - name: Upload Coverage Report
+ if: startsWith(matrix.os,'ubuntu')
+ uses: codecov/codecov-action@v1
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+
+# Build-search-request-processor-Windows:
+# strategy:
+# matrix:
+# java: [ 11, 17 ]
+#
+# name: Build and Test Search Request Processor Plugin on Windows
+# runs-on: windows-latest
+
+# steps:
+# - name: Checkout Search Request Processor
+# uses: actions/checkout@v1
+
+# - name: Setup Java ${{ matrix.java }}
+# uses: actions/setup-java@v1
+# with:
+# java-version: ${{ matrix.java }}
+#
+# - name: Run build
+# run: |
+# ./gradlew.bat build
+
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
new file mode 100644
index 0000000..e47d8d8
--- /dev/null
+++ b/.github/workflows/backport.yml
@@ -0,0 +1,28 @@
+name: Backport
+on:
+ pull_request_target:
+ types:
+ - closed
+ - labeled
+
+jobs:
+ backport:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ pull-requests: write
+ name: Backport
+ steps:
+ - name: GitHub App token
+ id: github_app_token
+ uses: tibdex/github-app-token@v1.5.0
+ with:
+ app_id: ${{ secrets.APP_ID }}
+ private_key: ${{ secrets.APP_PRIVATE_KEY }}
+ installation_id: 22958780
+
+ - name: Backport
+ uses: VachaShah/backport@v1.1.4
+ with:
+ github_token: ${{ steps.github_app_token.outputs.token }}
+ branch_name: backport/backport-${{ github.event.number }}
diff --git a/.github/workflows/backwards_compatibility_tests_workflow.yml b/.github/workflows/backwards_compatibility_tests_workflow.yml
new file mode 100644
index 0000000..750c8b5
--- /dev/null
+++ b/.github/workflows/backwards_compatibility_tests_workflow.yml
@@ -0,0 +1,69 @@
+name: Backwards Compatibility Tests Search Request Processor
+on:
+ push:
+ branches:
+ - "*"
+ - "feature/**"
+ pull_request:
+ branches:
+ - "*"
+ - "feature/**"
+
+jobs:
+ Restart-Upgrade-BWCTests-k-NN:
+ strategy:
+ matrix:
+ java: [ 11, 17 ]
+ bwc_version : [ "2.4.0" ]
+ opensearch_version : [ "3.0.0-SNAPSHOT" ]
+
+ name: SRP Restart-Upgrade BWC Tests
+ runs-on: ubuntu-latest
+ env:
+ BWC_VERSION_RESTART_UPGRADE: ${{ matrix.bwc_version }}
+
+ steps:
+ - name: Checkout SRP
+ uses: actions/checkout@v1
+
+ - name: Setup Java ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+
+# Comments intentional; these workflow scripts are copied from k-NN and we are reverse engineering them; missing qa directory fails the workflow here
+# - name: Run SRP Restart-Upgrade BWC Tests from BWCVersion-${{ matrix.bwc_version }} to OpenSearch Version-${{ matrix.opensearch_version }}
+# run: |
+# echo "Running restart-upgrade backwards compatibility tests ..."
+# ./gradlew :qa:restart-upgrade:testRestartUpgrade -Dtests.bwc.version=$BWC_VERSION_RESTART_UPGRADE
+
+
+ Rolling-Upgrade-BWCTests-SRP:
+ strategy:
+ matrix:
+ java: [ 11, 17 ]
+ bwc_version: [ "2.4.0" ]
+ opensearch_version: [ "3.0.0-SNAPSHOT" ]
+
+ name: SRP Rolling-Upgrade BWC Tests
+ runs-on: ubuntu-latest
+ env:
+ BWC_VERSION_ROLLING_UPGRADE: ${{ matrix.bwc_version }}
+
+ steps:
+ - name: Checkout SRP
+ uses: actions/checkout@v1
+
+ - name: Setup Java ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+
+# - name: Install dependencies
+# run: |
+# sudo apt-get install libopenblas-dev gfortran -y
+
+# - name: Run SRP Rolling-Upgrade BWC Tests from BWCVersion-${{ matrix.bwc_version }} to OpenSearch Version-${{ matrix.opensearch_version }}
+# run: |
+# echo "Running rolling-upgrade backwards compatibility tests ..."
+# ./gradlew :qa:rolling-upgrade:testRollingUpgrade -Dtests.bwc.version=$BWC_VERSION_ROLLING_UPGRADE
diff --git a/.github/workflows/create-documentation-issue.yml b/.github/workflows/create-documentation-issue.yml
new file mode 100644
index 0000000..1ab6e8b
--- /dev/null
+++ b/.github/workflows/create-documentation-issue.yml
@@ -0,0 +1,41 @@
+name: Create Documentation Issue
+on:
+ pull_request:
+ types:
+ - labeled
+env:
+ PR_NUMBER: ${{ github.event.number }}
+
+jobs:
+ create-issue:
+ if: ${{ github.event.label.name == 'needs-documentation' }}
+ runs-on: ubuntu-latest
+ name: Create Documentation Issue
+ steps:
+ - name: GitHub App token
+ id: github_app_token
+ uses: tibdex/github-app-token@v1.5.0
+ with:
+ app_id: ${{ secrets.APP_ID }}
+ private_key: ${{ secrets.APP_PRIVATE_KEY }}
+ installation_id: 22958780
+
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Edit the issue template
+ run: |
+ echo "https://github.com/opensearch-project/k-NN/pull/${{ env.PR_NUMBER }}." >> ./.github/ISSUE_TEMPLATE/documentation-issue.md
+
+ - name: Create Issue From File
+ id: create-issue
+ uses: peter-evans/create-issue-from-file@v4
+ with:
+ title: Add documentation related to new feature
+ content-filepath: ./.github/ISSUE_TEMPLATE/documentation-issue.md
+ labels: documentation
+ repository: opensearch-project/documentation-website
+ token: ${{ steps.github_app_token.outputs.token }}
+
+ - name: Print Issue
+ run: echo Created related documentation issue ${{ steps.create-issue.outputs.issue-number }}
diff --git a/semantic-reranker/.github/workflows/dco.yml b/.github/workflows/dco.yml
similarity index 85%
rename from semantic-reranker/.github/workflows/dco.yml
rename to .github/workflows/dco.yml
index 53ed530..cf30ea8 100644
--- a/semantic-reranker/.github/workflows/dco.yml
+++ b/.github/workflows/dco.yml
@@ -15,4 +15,4 @@ jobs:
- name: DCO Check
uses: tim-actions/dco@v1.1.0
with:
- commits: ${{ steps.get-pr-commits.outputs.commits }}
\ No newline at end of file
+ commits: ${{ steps.get-pr-commits.outputs.commits }}
diff --git a/.github/workflows/delete_backport_branch.yml b/.github/workflows/delete_backport_branch.yml
new file mode 100644
index 0000000..a97f9cd
--- /dev/null
+++ b/.github/workflows/delete_backport_branch.yml
@@ -0,0 +1,15 @@
+name: Delete merged branch of the backport PRs
+on:
+ pull_request:
+ types:
+ - closed
+
+jobs:
+ delete-branch:
+ runs-on: ubuntu-latest
+ if: startsWith(github.event.pull_request.head.ref,'backport-')
+ steps:
+ - name: Delete merged branch
+ uses: SvanBoxel/delete-merged-branch@main
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/draft-release-notes-workflow.yml b/.github/workflows/draft-release-notes-workflow.yml
new file mode 100644
index 0000000..6b3d89c
--- /dev/null
+++ b/.github/workflows/draft-release-notes-workflow.yml
@@ -0,0 +1,20 @@
+name: Release Drafter
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ update_release_draft:
+ name: Update draft release notes
+ runs-on: ubuntu-latest
+ steps:
+ - name: Update draft release notes
+ uses: release-drafter/release-drafter@v5
+ with:
+ config-name: draft-release-notes-config.yml
+ name: Version (set here)
+ tag: (None)
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml
new file mode 100644
index 0000000..3d0b81a
--- /dev/null
+++ b/.github/workflows/links.yml
@@ -0,0 +1,23 @@
+name: Link Checker
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ linkchecker:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: lychee Link Checker
+ id: lychee
+ uses: lycheeverse/lychee-action@master
+ with:
+ args: --accept=200,403,429 **/*.html **/*.md **/*.txt **/*.json
+ env:
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
+ - name: Fail if there were link errors
+ run: exit ${{ steps.lychee.outputs.exit_code }}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fc343a0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,89 @@
+.gradle
+**/build/
+!src/**/build/
+
+# Ignore Gradle GUI config
+gradle-app.setting
+
+# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
+!gradle-wrapper.jar
+
+# Avoid ignore Gradle wrappper properties
+!gradle-wrapper.properties
+
+# Cache of project
+.gradletasknamecache
+
+# Eclipse Gradle plugin generated files
+# Eclipse Core
+.project
+# JDT-specific (Eclipse Java Development Tools)
+.classpath
+
+
+# Compiled class file
+*.class
+
+# Log file
+*.log
+
+# BlueJ files
+*.ctxt
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.nar
+*.ear
+*.zip
+*.tar.gz
+*.rar
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+replay_pid*
+
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
\ No newline at end of file
diff --git a/ADMINS.md b/ADMINS.md
new file mode 100644
index 0000000..a4ffa8c
--- /dev/null
+++ b/ADMINS.md
@@ -0,0 +1,30 @@
+## Overview
+
+This document explains who the admins are (see below), what they do in this repo, and how they should be doing it. If you're interested in becoming a maintainer, see [MAINTAINERS](MAINTAINERS.md). If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).
+
+## Current Admins
+
+| Admin | GitHub ID | Affiliation |
+| --------------- | --------------------------------------- | ----------- |
+| Charlotte Henkle| [CEHENKLE](https://github.com/CEHENKLE) | Amazon |
+| Henri Yandell | [hyandell](https://github.com/hyandell) | Amazon |
+| Anirudha Jadhav | [anirudha](https://github.com/anirudha) | Amazon |
+| Mark Cohen | [macohen](https://github.com/macohen) | Amazon |
+
+## Admin Responsibilities
+
+As an admin you own stewardship of the repository and its settings. Admins have [admin-level permissions on a repository](https://docs.github.com/en/organizations/managing-access-to-your-organizations-repositories/repository-permission-levels-for-an-organization). Use those privileges to serve the community and protect the repository as follows.
+
+### Prioritize Security
+
+Security is your number one priority. Manage security keys and safeguard access to the repository.
+
+Note that this repository is monitored and supported 24/7 by Amazon Security, see [Reporting a Vulnerability](SECURITY.md) for details.
+
+### Enforce Code of Conduct
+
+Act on [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) violations by revoking access, and blocking malicious actors.
+
+### Adopt Organizational Best Practices
+
+Adopt organizational best practices, work in the open, and collaborate with other admins by opening issues before making process changes. Prefer consistency, and avoid diverging from practices in the opensearch-project organization.
\ No newline at end of file
diff --git a/MAINTAINERS.md b/MAINTAINERS.md
index 39b921e..157fbf6 100644
--- a/MAINTAINERS.md
+++ b/MAINTAINERS.md
@@ -32,6 +32,10 @@ This document explains who the maintainers are (see below), what they do in this
| Maintainer | GitHub ID | Affiliation |
|-------------------------|-----------------------------------------| ----------- |
| Anirudha Jadhav | [anirudha](https://github.com/anirudha) | Amazon |
+| Michael Froh | [msfroh](https://github.com/msfroh) | Amazon |
+| Mark Cohen | [macohen](https://github.com/macohen) | Amazon |
+| Lior Perry | [yang-db](https://github.com/yang-db) | Amazon |
+| Shenoy Pratik | [ps48](https://github.com/ps48) | Amazon |
## Maintainer Responsibilities
diff --git a/README.md b/README.md
index 57429ed..2733402 100644
--- a/README.md
+++ b/README.md
@@ -1,57 +1,38 @@
-# Search Relevance
+[](https://github.com/opensearch-project/search-relevance/actions/workflows/CI.yml)
+[](https://codecov.io/gh/opensearch-project/search-relevance)
+
-## Overview
+# OpenSearch Search Relevance - Reranker
+- [Welcome!](#welcome)
+- [Project Resources](#project-resources)
+- [Credits and Acknowledgments](#credits-and-acknowledgments)
+- [Code of Conduct](#code-of-conduct)
+- [License](#license)
+- [Copyright](#copyright)
-In a search engine, the relevance is the measure of the relationship accuracy between the search query and the search result. Higher the relevance is, the higher is the quality of search result and the users are able to get more relevant content. This project aims to add plugins to OpenSearch to help users make their query results more accurate, contextual and relevant.
+## Welcome!
+This repository currently hosts a plugin to rerank search results before returning them to the client inline. The current plan is to expand this functionality to allow users to add rewriters, rerankers, and log what those components do.
-## Relevancy and OpenSearch
+# History
+This repository has also been used for discussion and ideas around search relevance. These discussions still exist here, however due to the relatively new standard of having one repo per plugin in OpenSearch and our implementations beginning to make it into the OpenSearch build, we have two repositories now. This repository will develop into a plugin that will allow OpenSearch users to rewrite search queries, rerank results, and log data about those actions. The other repository, [dashboards-search-relevance](https://www.github.com/opensearch-projects/dashboards-search-relevance), is where we will build front-end tooling to help relevance engineers and business users tune results.
-Today, OpenSearch provides results in the order of scores generated by algorithms matching the indexed document contents to the input query. The documents that are more relevant to the query are ranked higher than the ones that are less relevant. These rankings may make sense to one set of users/applications and for others it may be very irrelevant. For example, relevancy for an E-commerce company can mean more similar products in the same category of the search query. While for a document search relevancy may mean, searching the query across different topics/categories present in the document store. This is why, we need more ways to customize the results and its rankings as per the need of the user/business.
-## Relevancy Engineering
+## Project Resources
-Relevancy as a problem, canโt just be solved at the search layer. Improving relevancy should be envisioned holistically from understanding the ingested data and usage signals to extracting feature, adding re-writers and improving algorithms. Below is the architecture of OpenSearch Relevancy Engineering.
+* [Project Website](https://opensearch.org/)
+* [Downloads](https://opensearch.org/downloads.html).
+* [Project Principles](https://opensearch.org/#principles)
+* [Contributing to OpenSearch Search Request Processor](CONTRIBUTING.md)
+* [Search Relevance](RELEVANCE.md)
+* [Maintainer Responsibilities](MAINTAINERS.md)
+* [Release Management](RELEASING.md)
+* [Admin Responsibilities](ADMINS.md)
+* [Security](SECURITY.md)
-
-
-
-[Initially presented at Haystack 2022 by @anirudha , @JohannesDaniel and @ps48].
-
-
-Overall the Relevancy Engineering can be divided into two tiers:
-1. **Ingestion Tier:** This tier handles getting the data from different sources to OpenSearch. This data may include:
- 1. Search Data:
- 1. Core search data, that needs to be queried on by OpenSearch
- 2. Ingestion connectors to fetch the data from different data sources and sink in OpenSearch indices.
- 2. Search Management Data:
- 1. Adding rules and judgements to the rewriter indices.
- 3. Observability Data:
- 1. Adding customer usage signals to OpenSearch, these signals may include granular details like anonymized customer queries, clicks, orders and session details.
-2. **Search & Relevancy Platform Tier:** This tier is responsible for analytics, re-wrtiers, model improvements and adding search configurations.
- 1. Search Analytics & Discovery:
- 1. Dashboards for analytics, metrics for search tests, search UIs and query profiling.
- 2. Querqy based query Rewriting:
- 1. Rewriters to customize queries with synonyms, word-breaks, spell corrections, query relaxation.
- 3. Search Back Office:
- 1. Manage business rules, ontologies and manual judgments.
- 4. Relevancy workbench:
- 1. Improve algorithms with automated testing, relevance model trainings, personalizations and custom re-rankers.
-### [RFC Search Relevance](https://github.com/opensearch-project/search-relevance/issues/1)
+## Code of Conduct
-## Contributing
-
-See [developer guide](https://github.com/opensearch-project/opensearch-plugins/blob/main/BUILDING.md#developing-new-plugins-for-opensearch) and [how to contribute to this project](CONTRIBUTING.md).
-
-## Getting Help
-
-If you find a bug, or have a feature request, please don't hesitate to open an issue in this repository.
-
-For more information, see [project website](https://opensearch.org/) and [documentation](https://opensearch.org/docs). If you need help and are unsure where to open an issue, try [forums](https://forum.opensearch.org/).
-
-## Security
-
-If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.
+This project has adopted the [Amazon Open Source Code of Conduct](CODE_OF_CONDUCT.md). For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq), or contact [opensource-codeofconduct@amazon.com](mailto:opensource-codeofconduct@amazon.com) with any additional questions or comments.
## License
diff --git a/RELEASING.md b/RELEASING.md
new file mode 100644
index 0000000..6903e71
--- /dev/null
+++ b/RELEASING.md
@@ -0,0 +1 @@
+This project follows the [OpenSearch release process](https://github.com/opensearch-project/.github/blob/main/RELEASING.md).
\ No newline at end of file
diff --git a/RELEVANCE.md b/RELEVANCE.md
new file mode 100644
index 0000000..57429ed
--- /dev/null
+++ b/RELEVANCE.md
@@ -0,0 +1,62 @@
+# Search Relevance
+
+## Overview
+
+In a search engine, the relevance is the measure of the relationship accuracy between the search query and the search result. Higher the relevance is, the higher is the quality of search result and the users are able to get more relevant content. This project aims to add plugins to OpenSearch to help users make their query results more accurate, contextual and relevant.
+
+## Relevancy and OpenSearch
+
+Today, OpenSearch provides results in the order of scores generated by algorithms matching the indexed document contents to the input query. The documents that are more relevant to the query are ranked higher than the ones that are less relevant. These rankings may make sense to one set of users/applications and for others it may be very irrelevant. For example, relevancy for an E-commerce company can mean more similar products in the same category of the search query. While for a document search relevancy may mean, searching the query across different topics/categories present in the document store. This is why, we need more ways to customize the results and its rankings as per the need of the user/business.
+
+## Relevancy Engineering
+
+Relevancy as a problem, canโt just be solved at the search layer. Improving relevancy should be envisioned holistically from understanding the ingested data and usage signals to extracting feature, adding re-writers and improving algorithms. Below is the architecture of OpenSearch Relevancy Engineering.
+
+
+
+
+[Initially presented at Haystack 2022 by @anirudha , @JohannesDaniel and @ps48].
+
+
+Overall the Relevancy Engineering can be divided into two tiers:
+
+1. **Ingestion Tier:** This tier handles getting the data from different sources to OpenSearch. This data may include:
+ 1. Search Data:
+ 1. Core search data, that needs to be queried on by OpenSearch
+ 2. Ingestion connectors to fetch the data from different data sources and sink in OpenSearch indices.
+ 2. Search Management Data:
+ 1. Adding rules and judgements to the rewriter indices.
+ 3. Observability Data:
+ 1. Adding customer usage signals to OpenSearch, these signals may include granular details like anonymized customer queries, clicks, orders and session details.
+2. **Search & Relevancy Platform Tier:** This tier is responsible for analytics, re-wrtiers, model improvements and adding search configurations.
+ 1. Search Analytics & Discovery:
+ 1. Dashboards for analytics, metrics for search tests, search UIs and query profiling.
+ 2. Querqy based query Rewriting:
+ 1. Rewriters to customize queries with synonyms, word-breaks, spell corrections, query relaxation.
+ 3. Search Back Office:
+ 1. Manage business rules, ontologies and manual judgments.
+ 4. Relevancy workbench:
+ 1. Improve algorithms with automated testing, relevance model trainings, personalizations and custom re-rankers.
+### [RFC Search Relevance](https://github.com/opensearch-project/search-relevance/issues/1)
+
+## Contributing
+
+See [developer guide](https://github.com/opensearch-project/opensearch-plugins/blob/main/BUILDING.md#developing-new-plugins-for-opensearch) and [how to contribute to this project](CONTRIBUTING.md).
+
+## Getting Help
+
+If you find a bug, or have a feature request, please don't hesitate to open an issue in this repository.
+
+For more information, see [project website](https://opensearch.org/) and [documentation](https://opensearch.org/docs). If you need help and are unsure where to open an issue, try [forums](https://forum.opensearch.org/).
+
+## Security
+
+If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.
+
+## License
+
+This project is licensed under the [Apache v2.0 License](LICENSE).
+
+## Copyright
+
+Copyright OpenSearch Contributors. See [NOTICE](NOTICE) for details.
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..0b85ca0
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,3 @@
+## Reporting a Vulnerability
+
+If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email to aws-security@amazon.com. Please do **not** create a public GitHub issue.
\ No newline at end of file
diff --git a/semantic-reranker/build.gradle b/build.gradle
similarity index 97%
rename from semantic-reranker/build.gradle
rename to build.gradle
index 2c5080c..e3b7e7f 100644
--- a/semantic-reranker/build.gradle
+++ b/build.gradle
@@ -40,8 +40,8 @@ opensearchplugin {
name pluginName
description pluginDescription
classname "${projectPath}.${pathToPlugin}.${pluginClassName}"
- licenseFile rootProject.file('LICENSE.txt')
- noticeFile rootProject.file('NOTICE.txt')
+ licenseFile rootProject.file('LICENSE')
+ noticeFile rootProject.file('NOTICE')
}
// This requires an additional Jar not published as part of build-tools
diff --git a/semantic-reranker/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
similarity index 100%
rename from semantic-reranker/gradle/wrapper/gradle-wrapper.jar
rename to gradle/wrapper/gradle-wrapper.jar
diff --git a/semantic-reranker/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
similarity index 100%
rename from semantic-reranker/gradle/wrapper/gradle-wrapper.properties
rename to gradle/wrapper/gradle-wrapper.properties
diff --git a/semantic-reranker/gradlew b/gradlew
similarity index 100%
rename from semantic-reranker/gradlew
rename to gradlew
diff --git a/semantic-reranker/gradlew.bat b/gradlew.bat
similarity index 96%
rename from semantic-reranker/gradlew.bat
rename to gradlew.bat
index 4cc84e5..6a68175 100644
--- a/semantic-reranker/gradlew.bat
+++ b/gradlew.bat
@@ -1,89 +1,89 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/release_notes b/release_notes
new file mode 100644
index 0000000..e69de29
diff --git a/semantic-reranker/.github/workflows/CI.yml b/semantic-reranker/.github/workflows/CI.yml
deleted file mode 100644
index a22d69c..0000000
--- a/semantic-reranker/.github/workflows/CI.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: Build and Test Plugin Template
-
-on:
- push:
- branches:
- - "*"
- pull_request:
- branches:
- - "*"
-
-jobs:
- build:
- strategy:
- matrix:
- os:
- - ubuntu-latest
- - macOS-latest
- java:
- - 17
- name: Build and Test Plugin Template
- runs-on: ${{ matrix.os }}
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK ${{ matrix.java }}
- uses: actions/setup-java@v1
- with:
- java-version: ${{ matrix.java }}
-
- - name: Build and Run Tests
- run: |
- ./gradlew build
- # Generated by 'opensearch.pluginzip' custom gradle plugin
- ./gradlew publishPluginZipPublicationToZipStagingRepository
diff --git a/semantic-reranker/.gitignore b/semantic-reranker/.gitignore
deleted file mode 100644
index 3266af2..0000000
--- a/semantic-reranker/.gitignore
+++ /dev/null
@@ -1,58 +0,0 @@
-
-# intellij files
-.idea/
-*.iml
-*.ipr
-*.iws
-build-idea/
-out/
-
-# include shared intellij config
-!.idea/inspectionProfiles/Project_Default.xml
-!.idea/runConfigurations/Debug_OpenSearch.xml
-
-# These files are generated in the main tree by IntelliJ
-benchmarks/src/main/generated/*
-
-# eclipse files
-.project
-.classpath
-.settings
-build-eclipse/
-
-# netbeans files
-nb-configuration.xml
-nbactions.xml
-
-# gradle stuff
-.gradle/
-build/
-bin/
-
-# vscode stuff
-.vscode/
-
-# testing stuff
-**/.local*
-.vagrant/
-/logs/
-
-# osx stuff
-.DS_Store
-
-# default folders in which the create_bwc_index.py expects to find old es versions in
-/backwards
-/dev-tools/backwards
-
-# needed in case docs build is run...maybe we can configure doc build to generate files under build?
-html_docs
-
-# random old stuff that we should look at the necessity of...
-/tmp/
-eclipse-build
-
-# projects using testfixtures
-testfixtures_shared/
-
-# These are generated from .ci/jobs.t
-.ci/jobs/
diff --git a/semantic-reranker/CONTRIBUTING.md b/semantic-reranker/CONTRIBUTING.md
deleted file mode 100644
index 95baabd..0000000
--- a/semantic-reranker/CONTRIBUTING.md
+++ /dev/null
@@ -1,115 +0,0 @@
-# Contributing Guidelines
-
-Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
-documentation, we greatly value feedback and contributions from our community.
-
-Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
-information to effectively respond to your bug report or contribution.
-
-
-## Reporting Bugs/Feature Requests
-
-We welcome you to use the GitHub issue tracker to report bugs or suggest features.
-
-When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
-reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
-
-* A reproducible test case or series of steps
-* The version of our code being used
-* Any modifications you've made relevant to the bug
-* Anything unusual about your environment or deployment
-
-
-## Contributing via Pull Requests
-Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
-
-1. You are working against the latest source on the *main* branch.
-2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
-3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
-
-To send us a pull request, please:
-
-1. Fork the repository.
-2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
-3. Ensure local tests pass.
-4. Commit to your fork using clear commit messages.
-5. Send us a pull request, answering any default questions in the pull request interface.
-6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
-
-GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
-[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
-
-## Developer Certificate of Origin
-
-OpenSearch is an open source product released under the Apache 2.0 license (see either [the Apache site](https://www.apache.org/licenses/LICENSE-2.0) or the [LICENSE.txt file](LICENSE.txt)). The Apache 2.0 license allows you to freely use, modify, distribute, and sell your own products that include Apache 2.0 licensed software.
-
-We respect intellectual property rights of others and we want to make sure all incoming contributions are correctly attributed and licensed. A Developer Certificate of Origin (DCO) is a lightweight mechanism to do that.
-
-The DCO is a declaration attached to every contribution made by every developer. In the commit message of the contribution, the developer simply adds a `Signed-off-by` statement and thereby agrees to the DCO, which you can find below or at [DeveloperCertificate.org](http://developercertificate.org/).
-
-```
-Developer's Certificate of Origin 1.1
-
-By making a contribution to this project, I certify that:
-
-(a) The contribution was created in whole or in part by me and I
- have the right to submit it under the open source license
- indicated in the file; or
-
-(b) The contribution is based upon previous work that, to the
- best of my knowledge, is covered under an appropriate open
- source license and I have the right under that license to
- submit that work with modifications, whether created in whole
- or in part by me, under the same open source license (unless
- I am permitted to submit under a different license), as
- Indicated in the file; or
-
-(c) The contribution was provided directly to me by some other
- person who certified (a), (b) or (c) and I have not modified
- it.
-
-(d) I understand and agree that this project and the contribution
- are public and that a record of the contribution (including
- all personal information I submit with it, including my
- sign-off) is maintained indefinitely and may be redistributed
- consistent with this project or the open source license(s)
- involved.
- ```
-
-We require that every contribution to OpenSearch is signed with a Developer Certificate of Origin. Additionally, please use your real name. We do not accept anonymous contributors nor those utilizing pseudonyms.
-
-Each commit must include a DCO which looks like this
-
-```
-Signed-off-by: Jane Smith
-```
-
-You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use `-s` or `โ โ signoff` to add the `Signed-off-by` line to the end of the commit message.
-
-## Finding contributions to work on
-Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
-
-
-## Code of Conduct
-This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
-For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
-opensource-codeofconduct@amazon.com with any additional questions or comments.
-
-
-## Security issue notifications
-If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
-
-## License Headers
-
-New files in your code contributions should contain the following license header. If you are modifying existing files with license headers, or including new files that already have license headers, do not remove or modify them without guidance.
-
-```
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-```
-
-## Licensing
-
-See the [LICENSE](LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
diff --git a/semantic-reranker/LICENSE.txt b/semantic-reranker/LICENSE.txt
deleted file mode 100644
index 261eeb9..0000000
--- a/semantic-reranker/LICENSE.txt
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/semantic-reranker/NOTICE.txt b/semantic-reranker/NOTICE.txt
deleted file mode 100644
index 731cb60..0000000
--- a/semantic-reranker/NOTICE.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-OpenSearch (https://opensearch.org/)
-Copyright OpenSearch Contributors
diff --git a/semantic-reranker/README.md b/semantic-reranker/README.md
deleted file mode 100644
index e5d4892..0000000
--- a/semantic-reranker/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Kendra Intelligent Ranking
\ No newline at end of file
diff --git a/semantic-reranker/settings.gradle b/settings.gradle
similarity index 100%
rename from semantic-reranker/settings.gradle
rename to settings.gradle
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/SearchRelevancePlugin.java b/src/main/java/org/opensearch/search/relevance/SearchRelevancePlugin.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/SearchRelevancePlugin.java
rename to src/main/java/org/opensearch/search/relevance/SearchRelevancePlugin.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/actionfilter/SearchActionFilter.java b/src/main/java/org/opensearch/search/relevance/actionfilter/SearchActionFilter.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/actionfilter/SearchActionFilter.java
rename to src/main/java/org/opensearch/search/relevance/actionfilter/SearchActionFilter.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/client/OpenSearchClient.java b/src/main/java/org/opensearch/search/relevance/client/OpenSearchClient.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/client/OpenSearchClient.java
rename to src/main/java/org/opensearch/search/relevance/client/OpenSearchClient.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/ConfigurationUtils.java b/src/main/java/org/opensearch/search/relevance/configuration/ConfigurationUtils.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/ConfigurationUtils.java
rename to src/main/java/org/opensearch/search/relevance/configuration/ConfigurationUtils.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/Constants.java b/src/main/java/org/opensearch/search/relevance/configuration/Constants.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/Constants.java
rename to src/main/java/org/opensearch/search/relevance/configuration/Constants.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/ResultTransformerConfiguration.java b/src/main/java/org/opensearch/search/relevance/configuration/ResultTransformerConfiguration.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/ResultTransformerConfiguration.java
rename to src/main/java/org/opensearch/search/relevance/configuration/ResultTransformerConfiguration.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/SearchConfigurationExtBuilder.java b/src/main/java/org/opensearch/search/relevance/configuration/SearchConfigurationExtBuilder.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/SearchConfigurationExtBuilder.java
rename to src/main/java/org/opensearch/search/relevance/configuration/SearchConfigurationExtBuilder.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/TransformerConfiguration.java b/src/main/java/org/opensearch/search/relevance/configuration/TransformerConfiguration.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/configuration/TransformerConfiguration.java
rename to src/main/java/org/opensearch/search/relevance/configuration/TransformerConfiguration.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/ResultTransformer.java b/src/main/java/org/opensearch/search/relevance/transformer/ResultTransformer.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/ResultTransformer.java
rename to src/main/java/org/opensearch/search/relevance/transformer/ResultTransformer.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/ResultTransformerType.java b/src/main/java/org/opensearch/search/relevance/transformer/ResultTransformerType.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/ResultTransformerType.java
rename to src/main/java/org/opensearch/search/relevance/transformer/ResultTransformerType.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/TransformerType.java b/src/main/java/org/opensearch/search/relevance/transformer/TransformerType.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/TransformerType.java
rename to src/main/java/org/opensearch/search/relevance/transformer/TransformerType.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/KendraIntelligentRanker.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/KendraIntelligentRanker.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/KendraIntelligentRanker.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/KendraIntelligentRanker.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraClientSettings.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraClientSettings.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraClientSettings.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraClientSettings.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraHttpClient.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraHttpClient.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraHttpClient.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/KendraHttpClient.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleAwsErrorHandler.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleAwsErrorHandler.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleAwsErrorHandler.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleAwsErrorHandler.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleResponseHandler.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleResponseHandler.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleResponseHandler.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/client/SimpleResponseHandler.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/Constants.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/Constants.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/Constants.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/Constants.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankerSettings.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankerSettings.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankerSettings.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankerSettings.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankingConfiguration.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankingConfiguration.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankingConfiguration.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/configuration/KendraIntelligentRankingConfiguration.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/PassageScore.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/PassageScore.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/PassageScore.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/PassageScore.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/Document.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/Document.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/Document.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/Document.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreRequest.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreRequest.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreRequest.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreRequest.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResult.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResult.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResult.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResult.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResultItem.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResultItem.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResultItem.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/model/dto/RescoreResultItem.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25Scorer.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25Scorer.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25Scorer.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25Scorer.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParser.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParser.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParser.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParser.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitter.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitter.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitter.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitter.java
diff --git a/semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizer.java b/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizer.java
similarity index 100%
rename from semantic-reranker/src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizer.java
rename to src/main/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizer.java
diff --git a/semantic-reranker/src/main/plugin-metadata/plugin-security.policy b/src/main/plugin-metadata/plugin-security.policy
similarity index 100%
rename from semantic-reranker/src/main/plugin-metadata/plugin-security.policy
rename to src/main/plugin-metadata/plugin-security.policy
diff --git a/semantic-reranker/src/test/java/org/opensearch/search/relevance/SearchRelevancePluginIT.java b/src/test/java/org/opensearch/search/relevance/SearchRelevancePluginIT.java
similarity index 100%
rename from semantic-reranker/src/test/java/org/opensearch/search/relevance/SearchRelevancePluginIT.java
rename to src/test/java/org/opensearch/search/relevance/SearchRelevancePluginIT.java
diff --git a/semantic-reranker/src/test/java/org/opensearch/search/relevance/SearchRelevanceTests.java b/src/test/java/org/opensearch/search/relevance/SearchRelevanceTests.java
similarity index 100%
rename from semantic-reranker/src/test/java/org/opensearch/search/relevance/SearchRelevanceTests.java
rename to src/test/java/org/opensearch/search/relevance/SearchRelevanceTests.java
diff --git a/semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25ScorerTests.java b/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25ScorerTests.java
similarity index 100%
rename from semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25ScorerTests.java
rename to src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/BM25ScorerTests.java
diff --git a/semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParserTests.java b/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParserTests.java
similarity index 100%
rename from semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParserTests.java
rename to src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/QueryParserTests.java
diff --git a/semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitterTests.java b/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitterTests.java
similarity index 100%
rename from semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitterTests.java
rename to src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/SlidingWindowTextSplitterTests.java
diff --git a/semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizerTests.java b/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizerTests.java
similarity index 100%
rename from semantic-reranker/src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizerTests.java
rename to src/test/java/org/opensearch/search/relevance/transformer/kendraintelligentranking/preprocess/TextTokenizerTests.java
diff --git a/semantic-reranker/src/test/resources/splitter/input.txt b/src/test/resources/splitter/input.txt
similarity index 100%
rename from semantic-reranker/src/test/resources/splitter/input.txt
rename to src/test/resources/splitter/input.txt
diff --git a/semantic-reranker/src/yamlRestTest/java/org/opensearch/search/relevance/SearchRelevanceClientYamlTestSuiteIT.java b/src/yamlRestTest/java/org/opensearch/search/relevance/SearchRelevanceClientYamlTestSuiteIT.java
similarity index 100%
rename from semantic-reranker/src/yamlRestTest/java/org/opensearch/search/relevance/SearchRelevanceClientYamlTestSuiteIT.java
rename to src/yamlRestTest/java/org/opensearch/search/relevance/SearchRelevanceClientYamlTestSuiteIT.java
diff --git a/semantic-reranker/src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml b/src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml
similarity index 100%
rename from semantic-reranker/src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml
rename to src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml