No credit card required
Pinecone integration
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.
An Uncaught Exception
Hello Eric,
it seems you didn't add your integration for such actor. Try to add this as an integration for selected actor.
2023-08-08T19:31:19.579Z Index creation failed: Pinecone.init() missing 3 required positional arguments: 'index', 'embedding_function', and 'text_key'
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.
I've just released fixed version, please try again.
Now it runs two same task (instead of one). One succeeds and the other fails.
@jan: can you give an example for the metadata key and value? Say I want to add the url to the metadata.
What is supposed to be inserted here as an object? it is very hard to guess.
Metadata fields (optional)
Metadata values (optional)
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.
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?
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.
- 17 monthly users
- 99.7% runs succeeded
- 11 days response time
- Created in May 2023
- Modified 5 days ago