Package Exports
- @rcrsr/rill-ext-pinecone
- @rcrsr/rill-ext-pinecone/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rcrsr/rill-ext-pinecone) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@rcrsr/rill-ext-pinecone
rill extension for Pinecone vector database integration. Provides 11 host functions for vector CRUD, batch operations, and collection management.
Experimental. Breaking changes will occur before stabilization.
Install
npm install @rcrsr/rill-ext-pineconePeer dependencies: @rcrsr/rill
Quick Start
import { parse, execute, createRuntimeContext, prefixFunctions } from '@rcrsr/rill';
import { createPineconeExtension } from '@rcrsr/rill-ext-pinecone';
const ext = createPineconeExtension({
apiKey: process.env.PINECONE_API_KEY!,
index: 'my-index',
});
const prefixed = prefixFunctions('pinecone', ext);
const { dispose, ...functions } = prefixed;
const ctx = createRuntimeContext({
functions,
callbacks: { onLog: (v) => console.log(v) },
});
const script = `
pinecone::upsert("doc-1", $embedding, [title: "Example"])
pinecone::search($embedding, [k: 5]) -> log
`;
const result = await execute(parse(script), ctx);
dispose?.();Documentation
See full documentation for configuration, functions, error handling, and cloud setup.
Related
- rill — Core language runtime
- Extensions Guide — Extension contract and patterns
- Host API Reference — Runtime context and host functions
- Pinecone Documentation — Official Pinecone docs
License
MIT