Skip to content

Commit b7698c0

Browse files
fix(CE): Quick fix for pinecone write (#858)
Co-authored-by: TivonB-AI2 <124182151+TivonB-AI2@users.noreply.github.com>
1 parent 30b0c12 commit b7698c0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

integrations/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GIT
77
PATH
88
remote: .
99
specs:
10-
multiwoven-integrations (0.34.3)
10+
multiwoven-integrations (0.34.4)
1111
MailchimpMarketing
1212
activesupport
1313
async-websocket

integrations/lib/multiwoven/integrations/destination/pinecone_db/client.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ def process_records(records, stream)
7878

7979
records.each do |record_object|
8080
record = extract_data(record_object, properties)
81-
@namespace = stream.name
82-
args = [@index_name, @namespace, record]
81+
@namespace = if stream.name == "__default__"
82+
""
83+
else
84+
stream.name
85+
end
86+
args = [@index_name, stream.name, record]
8387
begin
8488
pinecone_index = @pinecone.index(@index_name)
8589
response = send_to_pinecone(pinecone_index, record)

integrations/lib/multiwoven/integrations/rollout.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Multiwoven
44
module Integrations
5-
VERSION = "0.34.3"
5+
VERSION = "0.34.4"
66

77
ENABLED_SOURCES = %w[
88
Snowflake

0 commit comments

Comments
 (0)