Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kemingy
Copy link
Member

@kemingy kemingy commented May 13, 2025

No description provided.

@kemingy kemingy requested a review from Copilot May 13, 2025 01:36
Copy link
Contributor

Copilot AI left a comment

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 introduces an anthropic contextual retrieval example along with support for unique indexes in the index definitions. Key changes include:

  • Adding the UniqueIndex dataclass and a corresponding unique_columns method in vechord/spec.py
  • Updating index creation in vechord/client.py and registry logic in vechord/registry.py to properly handle UniqueIndex
  • Introducing an anthropic retrieval example in examples/anthropic.py and adding corresponding tests in tests/test_table.py

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vechord/spec.py Adds UniqueIndex and unique_columns methods to support unique indexes
vechord/registry.py Updates registration to include unique_columns in index creation
vechord/client.py Modifies create_index_if_not_exists for handling UniqueIndex queries
vechord/augment.py Improves formatting of document context embedding
tests/test_table.py Adds tests to verify unique index enforcement using UniqueViolation
examples/anthropic.py Provides an end-to-end example for anthropic contextual retrieval

kemingy added 3 commits May 16, 2025 11:18
Signed-off-by: Keming <[email protected]>
Signed-off-by: Keming <[email protected]>
@kemingy kemingy merged commit 11bf635 into tensorchord:main May 16, 2025
4 checks passed
@kemingy kemingy deleted the anthropic branch May 16, 2025 03:31
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.

1 participant