pinecone.ts 408 B

12345678910111213
  1. /**
  2. * Change the namespace to the namespace on Pinecone you'd like to store your embeddings.
  3. */
  4. if (!process.env.PINECONE_INDEX_NAME) {
  5. throw new Error('Missing Pinecone index name in .env file');
  6. }
  7. const PINECONE_INDEX_NAME = process.env.PINECONE_INDEX_NAME ?? '';
  8. const PINECONE_NAME_SPACE = 'pdf-test'; //namespace is optional for your vectors
  9. export { PINECONE_INDEX_NAME, PINECONE_NAME_SPACE };