Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 2.2 KB

README.md

File metadata and controls

42 lines (35 loc) · 2.2 KB

Developer Notes

Try

Environment Variables

The following environment variables are required to run the code:

  • OPENAI_API_KEY - OpenAI API Key
  • PINECONE_API_KEY - Pinecone API Key
  • PINECONE_ENVIRONMENT - See Pinecone.io dashboard

Place the above in a .env file in the root of the project.

Notes

  • To run this code in WebStorm, in the Run/Debug Configurations set node paramaters to:

    --loader ts-node/esm
    

    The above is done to support loading LangChain ESM modules.

  • OpenAI text-embedding-ada-002 outputs 1536 dimensions

References