- Get sitemap loader working
The following environment variables are required to run the code:
OPENAI_API_KEY
- OpenAI API KeyPINECONE_API_KEY
- Pinecone API KeyPINECONE_ENVIRONMENT
- See Pinecone.io dashboard
Place the above in a .env
file in the root of the project.
-
To run this code in WebStorm, in the Run/Debug Configurations set node parameters to:
--loader ts-node/esm
The above is done to support loading LangChain ESM modules.
-
OpenAI
text-embedding-ada-002
outputs 1536 dimensions