import { PineconeClient } from "npm:@pinecone-database/pinecone";
type Pinecone = {
apiKey: string;
environment: string;
};
export async function main(auth: Pinecone, index_name: string) {
const client = new PineconeClient();
await client.init(auth);
return await client.describeIndex({ indexName: index_name });
}
Submitted by admin 521 days ago
import { PineconeClient } from "npm:@pinecone-database/pinecone";
type Pinecone = {
apiKey: string;
environment: string;
};
export async function main(auth: Pinecone, index_name: string) {
const client = new PineconeClient();
await client.init(auth);
return await client.describeIndex({ indexName: index_name });
}
Submitted by admin 524 days ago
import { Resource } from "https://deno.land/x/windmill@v1.88.1/mod.ts"
import { PineconeClient } from "npm:@pinecone-database/pinecone";
export async function main(auth: Resource<'pinecone'>, index_name: string) {
const client = new PineconeClient();
await client.init(auth);
return await client.describeIndex({ indexName: index_name });
}
Submitted by adam186 639 days ago