Edits history of script submission #22487 for ' Describe Index (pinecone)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    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