Pinecone integration avatar
Pinecone integration
Try for free

No credit card required

View all Actors
Pinecone integration

Pinecone integration

jan.turon/pinecone-integration
Try for free

No credit card required

Simplify your data operations with this Apify and Pinecone integration. Easily push selected fields from your Apify Actor directly into any Pinecone index. If the index doesn't exist, the integration will create it. Practical and straightforward solution for handling data between Apify and Pinecone.

User avatar

Actor Broken

Closed

eric_kaiser opened this issue
10 months ago

An Uncaught Exception

User avatar

Hello Eric,

it seems you didn't add your integration for such actor. Try to add this as an integration for selected actor.

User avatar

user-6pAEvkFMGHQR8Ewe9

9 months ago

2023-08-08T19:31:19.579Z Index creation failed: Pinecone.init() missing 3 required positional arguments: 'index', 'embedding_function', and 'text_key'

User avatar

user-6pAEvkFMGHQR8Ewe9

9 months ago

I did integration with "Website Content Crawler". When the actor finishes Website Content Crawler it starts automatically Pinecone actor and this fails with the error above.

User avatar

I've just released fixed version, please try again.

User avatar

user-6pAEvkFMGHQR8Ewe9

9 months ago

Now it runs two same task (instead of one). One succeeds and the other fails.

User avatar

user-6pAEvkFMGHQR8Ewe9

9 months ago

@jan: can you give an example for the metadata key and value? Say I want to add the url to the metadata.

User avatar

user-6pAEvkFMGHQR8Ewe9

9 months ago

What is supposed to be inserted here as an object? it is very hard to guess.

Metadata fields (optional)

Metadata values (optional)

User avatar

metadata_values - Object of metadata values you want to push to Pinecone from your Actor. For example, if you want to push url and createdAt values to Pinecone, you should set this field to {"url": "https://www.apify.com", "createdAt": "2021-09-01"}. metadata_fields - Object of metadata fields you want to push to Pinecone from your Actor. For example, if you want to push url and createdAt fields, you should set this field to {"url": "url", "createdAt": "createdAt"}. If it has the same key as metadata_values, it's replaced.

User avatar

user-6pAEvkFMGHQR8Ewe9

9 months ago

But the url differs for each page. How can I set a constant value before the actor runs, as you provided? Each page will have a different url, so how can I configure to set metadata for the url at runtime?

User avatar

You can pass it from dataset directly in metadata_fields object, sth like { "url": "site.url" } or whatever field you want to pass instead "site.url" it supports dot notation.

Developer
Maintained by Community
Actor metrics
  • 17 monthly users
  • 99.7% runs succeeded
  • 11 days response time
  • Created in May 2023
  • Modified 5 days ago