Azure / Azure/azure-search-vector-samples

Error: NotFoundError - Resource not found while implementing llama index with Azure OpenAI for fine-tuning

Open
#223 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
910
Forks
377
PR merge metrics
No merged PRs in 30d

Description

**Description:**
During the implementation of the llama index with Azure OpenAI for fine-tuning, the following error occurred:

```
Retrying llama_index.llms.openai.base.OpenAI._chat in 0.6394267984578837 seconds as it raised NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}.
```

**Code snippet:**
```python
# Perform query to retrieve the contexts and answers for the generated questions

self.llm = OpenAI(
api_base=self.azure_openai_endpoint,
api_key=self.azure_openai_api_key,
api_version=self.azure_openai_api_version,
model=self.model,
temperature=self.temperature
)

query_engine = index.as_query_engine(similarity_top_k=2, llm=self.llm)
```

**Additional Information:**
The error seems to be related to a `NotFound` error with code 404 indicating that the requested resource was not found.

**Problem Statement:**
The issue occurs while trying to execute the query using Azure OpenAI. The error message suggests that the resource being requested is not found.

**Solution Required:**
Please provide guidance on how to resolve this issue as I am unsure how to proceed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the query with the shown OpenAI configuration and review the Azure OpenAI endpoint, API version, model, and related resource settings. Compare those values with the Azure resource being used, then confirm that the query_engine call completes without the 404 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
ai, cloud, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.