Repository navigation
Sparse index support #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sparse index support #424
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e4e94aa
Regenerate off 2025-01, update tests
jhamon 1571e16
Control plane docs extraction
jhamon 63cfef3
Introduce Vector and SparseValue dataclasses, adjust object factories…
jhamon 03d2aa2
Add codegen script to generate updated stubs from proto file
jhamon 6db3421
Disable tests on dev release build
jhamon f5d386c
Adjust fetch return type
jhamon 41ddc88
mypy type fixes
jhamon cd55949
More mypy fixes
jhamon ebeb5be
More more mypy fixes
jhamon 9d8e5b8
Fix failing tests
jhamon 534df9b
Fix unit tests
jhamon da31fe0
Fix integration tests
jhamon 0c0422b
Fix more tests
jhamon 5f5a5d1
Adjust googleapis-common-protos for protobuf compat
jhamon 84248fc
Iterate on grpc deps
jhamon df0e8e4
Fix sparse query
jhamon c618fff
Fix sparse query types
jhamon 2770806
Iterate on grpc deps
jhamon 5aa290e
Fix integration test
jhamon 0d09933
Adjust grpc dep testing config
jhamon 3f134b4
Adjust test configuration
jhamon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Submodule apis
updated
from 38acd8 to 8562ca
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| version: v1 | ||
| plugins: | ||
| - plugin: buf.build/grpc/python:v1.59.0 | ||
| out: gen | ||
| - plugin: buf.build/protocolbuffers/python:v29.0 | ||
| out: gen | ||
| - plugin: buf.build/protocolbuffers/pyi:v29.1 | ||
| out: gen |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Generated by buf. DO NOT EDIT. | ||
| version: v2 | ||
| deps: | ||
| - name: buf.build/googleapis/googleapis | ||
| commit: acd896313c55464b993332136ded1b6e | ||
| digest: b5:025d83e25193feb8dac5e5576113c8737006218b3b09fbc0d0ff652614da5424b336edb15bea139eb90d14eba656774a979d1fbdae81cbab2013932b84b98f53 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml | ||
| version: v2 | ||
| lint: | ||
| use: | ||
| - STANDARD | ||
| breaking: | ||
| use: | ||
| - FILE | ||
| deps: | ||
| - buf.build/googleapis/googleapis | ||
| modules: | ||
| - path: apis/_build/2025-01 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -eux -o pipefail | ||
| version=$1 # e.g. 2024-07 | ||
|
|
||
| update_apis_repo() { | ||
| echo "Updating apis repo" | ||
| pushd codegen/apis | ||
| git fetch | ||
| git checkout main | ||
| git pull | ||
| just build | ||
| popd | ||
| } | ||
|
|
||
| update_buf_config() { | ||
| pushd codegen | ||
| # Update buf config to find correct proto version | ||
| sed -i '' "s/[0-9][0-9][0-9][0-9]-[0-1][0-9]/${version}/g" buf.yaml | ||
|
|
||
| # Clean before building | ||
| rm -rf gen | ||
|
|
||
| # Ensure path valid by running the buf build command | ||
| buf build | ||
| popd | ||
| } | ||
|
|
||
| buf_generate() { | ||
| pushd codegen | ||
| # Generate the python code | ||
| buf generate | ||
| popd | ||
| } | ||
|
|
||
| update_apis_repo | ||
| update_buf_config | ||
| buf_generate | ||
|
|
||
| dest="pinecone/core/grpc/protos/" | ||
|
|
||
| # Remove existing files in dest | ||
| rm -rf "${dest}*.py" | ||
| rm -rf "${dest}*.pyi" | ||
|
|
||
| find codegen/gen/ -name "*.py" | while IFS= read -r file; do | ||
| sed -i '' "s/^import db_data/import pinecone.core.grpc.protos.db_data/g" "${file}" | ||
| done | ||
|
|
||
| # Copy the new generated files to dest directory | ||
| cp codegen/gen/* ${dest} | ||
|
|
||
| # Cleanup the intermediate files that were generated | ||
| rm -rf codegen/gen |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warnings were showing in the log about these settings for the datadog ddtrace plugin, so I removed them while I was in this file making adjustments.