Skip to content

pinecone-io/n8n-nodes-pinecone-assistant

Repository files navigation

n8n-nodes-pinecone-assistant

This is the official n8n community node for interacting with Pinecone Assistant in your workflows.

Pinecone Assistant allows you to build production-grade chat and agent-based applications quickly. It abstracts the complexities of implementing retrieval-augmented (RAG) systems by managing the chunking, embedding, storage, query planning, vector search, model orchestration, reranking for you.

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

Assistants

  • List all the Assistants in the your project

Files

  • List all files for an Assistant
  • Upload a file to an Assistant
  • Update a file in an Assistant
  • Delete file from an Assistant

Context Snippets

  • Get context snippets from an Assistant

Credentials

To use the Pinecone Assistant node, you'll need a Pinecone account and an API key. You can get started for free on the Starter plan (refer to current pricing and limits for more info).

  1. Sign up for a Pinecone account
  2. Create an API key

Compatibility

This node was tested locally against n8n 1.121.3.

Usage

Refer to our Pinecone Assistant quickstart for n8n to get started with a pre-built workflow using this node, an Assistant, and Open AI.

Resources

Version history

  • V1

Node development

To develop, build, and run this node locally, use the n8n-node cli tool or pnpm. For more info on n8n-node, refer here.

  1. Install dependencies
$ cd n8n-nodes-pinecone-assistant
$ pnpm install
  1. Build the node

This compiles Typescript files and bundles project assets into the dist folder.

$ pnpm run build

Running this will clean the dist folder.

  1. Test the node

This runs a local instance of n8n with the node. It watches the project directory and automatically rebuilds when changes are detected.

$ pnpm run dev

Head over to http://localhost:5678 to test the node in a workflow.

  1. Run tests

Run the unit test suite.

$ pnpm test
  1. Versioning the node

When making changes to a version of the node, ensure backwards compatibility with the current version. If it cannot be backwards compatible, create a new version:

  • In PineconeAssistant.node.ts, change defaultVersion to the new version number
  • In PineconeAssistant.node.ts, update the list of nodeVersions
  • Add a new version directory, named v# (i.e. v2)
  • In the new version directory, add the versioned node, PineconeAssistantV2.node.ts and all all functionality.
  1. Release the node and publish to npm

Login to npm.

$ pnpm login

The release command builds, lints, updates the changelog, creates git tags, creates a GitHub release, and publishes the package to npm.

$ pnpm run release

Contributing

We welcome contributions! Please feel free to:

  • Submit issues and bug reports
  • Propose new features and improvements
  • Contribute code via pull requests
  • Share your use cases and success stories

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published