feat: include source page link in chat responses#180
Open
HardeepAsrani wants to merge 21 commits into
Open
Conversation
… Base Private posts were excluded from the Add Data list because the listing and re-index queries filtered to the 'publish' status only. Include the 'private' status so private posts can be added and stay in sync when edited. (Password-protected posts already matched 'publish' and were addable.) Because added content is surfaced to any chat visitor regardless of the post's original visibility, adding a private or password-protected post now requires an explicit confirmation.
Append a compact source citation to chat answers, shown only for publicly accessible sources. Adds a Settings toggle and a hyve_chat_source_link filter for source-type-specific resolution.
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.2.2 to 2.2.3. - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.2.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.3.1 to 4.3.2. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.2/packages/tailwindcss) --- updated-dependencies: - dependency-name: tailwindcss dependency-version: 4.3.2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.15 to 8.5.16. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss@8.5.15...8.5.16) --- updated-dependencies: - dependency-name: postcss dependency-version: 8.5.16 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [grunt](https://github.com/gruntjs/grunt) from 1.6.1 to 1.6.2. - [Release notes](https://github.com/gruntjs/grunt/releases) - [Changelog](https://github.com/gruntjs/grunt/blob/main/CHANGELOG) - [Commits](gruntjs/grunt@v1.6.1...v1.6.2) --- updated-dependencies: - dependency-name: grunt dependency-version: 1.6.2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env) from 11.9.0 to 11.10.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/blocks@11.10.0/packages/env) --- updated-dependencies: - dependency-name: "@wordpress/env" dependency-version: 11.10.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@wordpress/icons](https://github.com/WordPress/gutenberg/tree/HEAD/packages/icons) from 10.32.0 to 15.1.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/icons/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/v15.1.0/packages/icons) --- updated-dependencies: - dependency-name: "@wordpress/icons" dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@wordpress/icons](https://github.com/WordPress/gutenberg/tree/HEAD/packages/icons) from 10.32.0 to 15.1.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/icons/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/v15.1.0/packages/icons) --- updated-dependencies: - dependency-name: "@wordpress/icons" dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.2.2 to 2.2.3. - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.2.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ment/wordpress/env-11.10.0 chore(deps-dev): bump @wordpress/env from 11.9.0 to 11.10.0
…ment/postcss-8.5.16 chore(deps-dev): bump postcss from 8.5.15 to 8.5.16
…ment/tailwindcss-4.3.2 chore(deps-dev): bump tailwindcss from 4.3.1 to 4.3.2
…ment/grunt-1.6.2 chore(deps-dev): bump grunt from 1.6.1 to 1.6.2
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.17 to 4.3.2. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.2/packages/@tailwindcss-postcss) --- updated-dependencies: - dependency-name: "@tailwindcss/postcss" dependency-version: 4.3.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…ment/tailwindcss/postcss-4.3.2 chore(deps-dev): bump @tailwindcss/postcss from 4.1.17 to 4.3.2
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 32.5.0 to 32.6.0. - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@32.6.0/packages/scripts) --- updated-dependencies: - dependency-name: "@wordpress/scripts" dependency-version: 32.6.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…ment/wordpress/scripts-32.6.0 chore(deps-dev): bump @wordpress/scripts from 32.5.0 to 32.6.0
Member
Author
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: HardeepAsrani <2649903+HardeepAsrani@users.noreply.github.com>
Fixed in |
Member
Author
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: HardeepAsrani <2649903+HardeepAsrani@users.noreply.github.com>
Fixed in |
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.
The Pro companion is Codeinwp/hyve#236.
What this adds
When Hyve answers a question, it can now show where the answer came from — the knowledge base content it drew on — as small numbered citations under the reply.
Highlights:
Sources 1 2 3row beneath the answer; hovering (or focusing) a number reveals the page title, and clicking opens it in a new tab.For developers
Three filters are available for fine-tuning:
hyve_source_link_limit— max number of sources shown (default3).hyve_source_link_score_ratio— how close to the best match a source must score to be shown, as a ratio of the top score (default0.8;0shows everything above the relevance threshold).hyve_chat_source_link— resolve/override the URL for a given source (used by the Pro plugin for website-link and sitemap sources, and to suppress links for custom data).Manual QA
Prerequisite: add a few public Posts/Pages to the Knowledge Base and make sure the chat answers from them.
With the Pro plugin (Codeinwp/hyve#236) active, also confirm: website-link and sitemap sources link to their original public URL, and custom-data sources show no link.