New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Azure OpenAI API instance name not found #458
Comments
🤖 Hey @hendryman, good to see you back! Running into a bit of a snag, I see? Let's get that sorted. The error you're encountering seems to be related to the OpenAI API key configuration. Here are some steps you can take to resolve this issue:
OPENAI_API_KEY=<your_openai_api_key>
PINECONE_API_KEY=<your_pinecone_api_key>
PINECONE_ENVIRONMENT=<your_pinecone_environment>
PINECONE_INDEX_NAME=<your_pinecone_index_name> Replace
If you've checked all these and the issue persists, it might be a problem with the OpenAI API itself or the way it's being used in the code. In that case, you might need to check the code where the API is being used or contact OpenAI support for further assistance. For more information, you can refer to the README.md and .env.example files in the repository. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
@dosu-bot that does not solve my problem. The problem is an error with a "Azure OpenAI API instance name" - I don't use the Azure OpenAI API... |
🤖 The error you're encountering seems to be related to the However, since you mentioned that you don't use Azure OpenAI API, you might want to replace the Unfortunately, without the implementation details of the If the // const embeddings = new OpenAIEmbeddings();
// await PineconeStore.fromDocuments(docs, embeddings, {
// pineconeIndex: index,
// namespace: PINECONE_NAME_SPACE,
// textKey: 'text',
// }); Please note that this will likely affect the functionality of your application, as the embeddings won't be generated and stored. You should replace these lines with an alternative way of generating and storing embeddings that fits your needs. You can find these lines in the scripts/ingest-data.ts file. I hope this helps! If you have any other questions or need further clarification, feel free to ask. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
I have configured .env as described in the repo.
Then, on
yarn run ingest
i get this error:error Error: Azure OpenAI API instance name not found at new OpenAIEmbeddings (file:///Users/manuel/Dropbox/GitHub/repos/gpt4-pdf-chatbot-langchain/node_modules/langchain/dist/embeddings/openai.js:121:23)
How can I fix this?
The text was updated successfully, but these errors were encountered: