-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(pinecone): pinecone batch upsert #927
Merged
Merged
Conversation
This file contains 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
jvallesm
reviewed
Dec 10, 2024
jvallesm
reviewed
Dec 10, 2024
jvallesm
reviewed
Dec 10, 2024
QARecipevariable:
id:
format: string
colour:
format: string
component:
pinecone-0:
type: pinecone
task: TASK_BATCH_UPSERT
input:
vectors:
- id: d
values: [1.0, 2.0, 2.0]
metadata:
color: dusk
- id: ${variable.id}
values: [0.0, -1.0, 5.0]
metadata:
color: ${variable.colour}
namespace: jazz
condition:
setup: ${connection.pinecone}
output:
out:
value: ${pinecone-0.output.upserted-count} Request$ curl -X POST 'http://localhost:8080/v1beta/users/jvallesm/pipelines/pineco/trigger' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $INSTILL_API_TOKEN" \
--data '{
"inputs": [
{
"colour": "orchid",
"id": "z"
}
]
}' | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 247 100 172 100 75 45 19 0:00:03 0:00:03 --:--:-- 64
{
"outputs": [
{
"out": 2
}
],
"metadata": {
"traces": {
"pinecone-0": {
"statuses": [
"STATUS_COMPLETED"
],
"inputs": [],
"outputs": [],
"error": {
"message": ""
},
"computeTimeInSeconds": 0
}
}
}
} ResultEdit: re-tested with non-string metadata values |
jvallesm
force-pushed
the
chunhao/ins-6919-pinecone-batch-upsert
branch
from
December 10, 2024 19:04
12d36fd
to
ef27531
Compare
jvallesm
force-pushed
the
chunhao/ins-6919-pinecone-batch-upsert
branch
from
December 11, 2024 06:54
ef27531
to
c74b05a
Compare
jvallesm
force-pushed
the
chunhao/ins-6919-pinecone-batch-upsert
branch
from
December 11, 2024 09:12
9399ca7
to
9e87125
Compare
donch1989
pushed a commit
that referenced
this pull request
Dec 11, 2024
🤖 I have created a release *beep* *boop* --- ## [0.48.5-beta](v0.48.4-beta...v0.48.5-beta) (2024-12-11) ### Features * **pinecone:** pinecone batch upsert ([#927](#927)) ([398adf9](398adf9)) * **vdp:** upload component input output data ([#923](#923)) ([8b6caab](8b6caab)) ### Bug Fixes * **trigger:** add component intermediate data in the trigger stream/response ([#932](#932)) ([2077ae7](2077ae7)) * **trigger:** resolve issue where default value for number cannot be an integer ([#933](#933)) ([134032a](134032a)) ### Miscellaneous Chores * release v0.48.5-beta ([043788d](043788d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.
Because
This commit