import { PineconeClient } from "@pinecone-database/[email protected]";
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 hugo989 7 days ago