Skip to content
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

Knowledge - Knowledge tool error out when using Azure OpenAI model provider. #614

Closed
sangee2004 opened this issue Nov 15, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@sangee2004
Copy link

sangee2004 commented Nov 15, 2024

Steps to reproduce the problem:

  1. Create following 3 models:
    a. model with model providers as Azure OpenAI and target model as gpt4-o set as "default"
    b. model with model providers as Azure OpenAI and target model as text-embedding-ada-002
    c. model with model providers as Azure OpenAI and target model as text-embedding-3-small

  2. Create an agent with model set to User System Default

  3. Add a local knowledge file.

Ingestion of fails with following error message which suggests that we are still using values set in OPENAI_API_KEY which is invalid in my case.

failed to ingest file: ingestion failed for at least one file: failed to add documents from file "ws://directory:///data/.local/share/otto8/workspace-provider/a7873e01-a4ac-4a6f-9503-6cd12f9c736e/.conversion/Holiday List_2024.pdf.json": couldn't add document '0427f4c0-69d1-4584-a4b8-a1c844442a79': couldn't create embedding of document: error sending request(s): retry limit (5) exceeded or failed with non-retriable error(s): #1/5: 401 <{ "error": { "message": "Incorrect API key provided: sk-test. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" } } > (err: )
{
  "items": [
    {
      "id": "ea14c2d390e346b74fa1fecdd7214d1e637e166657007c8abdb390eb517d8ca3",
      "created": "2024-11-15T23:18:57Z",
      "type": "knowledgefile",
      "fileName": "Holiday List_2024.pdf",
      "state": "error",
      "error": "failed to ingest file: ingestion failed for at least one file: failed to add documents from file \"ws://directory:///data/.local/share/otto8/workspace-provider/a7873e01-a4ac-4a6f-9503-6cd12f9c736e/.conversion/Holiday List_2024.pdf.json\": couldn't add document '0427f4c0-69d1-4584-a4b8-a1c844442a79': couldn't create embedding of document: error sending request(s): retry limit (5) exceeded or failed with non-retriable error(s): #1/5: 401 \u003C{\n    \"error\": {\n        \"message\": \"Incorrect API key provided: sk-test. You can find your API key at https://platform.openai.com/account/api-keys.\",\n        \"type\": \"invalid_request_error\",\n        \"param\": null,\n        \"code\": \"invalid_api_key\"\n    }\n}\n\u003E (err: \u003Cnil\u003E)",
      "agentID": "a17t92x",
      "knowledgeSetID": "kst1-a17t92x",
      "approved": true,
      "lastIngestionStartTime": "2024-11-15T23:18:57Z",
      "lastIngestionEndTime": "2024-11-15T23:18:57Z",
      "lastRunIDs": [
        "r1wxcjl",
        "r1qvlvj"
      ],
      "sizeInBytes": 110918
    }
  ]
}
@sangee2004 sangee2004 added bug Something isn't working knowledge labels Nov 15, 2024
@sangee2004
Copy link
Author

sangee2004 commented Nov 16, 2024

Tried the following steps where I am not creating any new model. But updating the following 3 existing models and setting the provider to Azure OpenAI provider.
a. gpt4-o
b. text-embedding-ada-002
c. text-embedding-3-small

  1. Create an agent with model set to User System Default
  2. Add a local knowledge file.

Ingestion of fails with following error message

failed to ingest file: ingestion failed for at least one file: failed to add documents from file "ws://directory/:///data/.local/share/otto8/workspace-provider/80042982-240f-41c5-a20a-de83fae036f7/.conversion/README.md.json": couldn't add document 'bf7426f3-6e21-4624-92cb-79da9c6c07f1': couldn't create embedding of document: error sending request(s): retry limit (5) exceeded or failed with non-retriable error(s): #1/5: 404 <{"detail":"Not Found"}> (err: )

@sangee2004 sangee2004 changed the title Knowledge - Not able to ingest knowledge files when using Azure OpenAI model provider. Knowledge/Image generation - Knowledge and image generation tools error out when using Azure OpenAI model provider. Nov 16, 2024
@thedadams thedadams self-assigned this Nov 16, 2024
@sangee2004 sangee2004 changed the title Knowledge/Image generation - Knowledge and image generation tools error out when using Azure OpenAI model provider. Knowledge - Knowledge tool error out when using Azure OpenAI model provider. Nov 18, 2024
@sangee2004
Copy link
Author

Tracking the issue seen with image generation in - https://github.com/otto8-ai/otto8/issues/619

@thedadams
Copy link
Contributor

This has changed significantly, but the underlying issue should be addressed.

@sangee2004
Copy link
Author

Able to ingest knowledge files and retrieve information from them successfully using Azure OpenAI model provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants