Closed wodecki closed 1 month ago
Using CLI command:
python -m graphrag.query --root ./ragtest --method global "Sample question"
works correctly.
Solved. Changed the model type to: api_type=OpenaiApiType.AzureOpenAI,
in my case, need to modify these parameter to work well. FYR
Hello Sir, I am running in the same problem,
I tried the api_type=OpenaiApiType.AzureOpenAI,
But still got the same error, do youhave any idea why?
Thank you
Describe the bug
When using AzureOpenAI llm and embeddings, local search generates the error:
AttributeError: 'AzureOpenAIEmbeddings' object has no attribute 'embed'
Steps to reproduce
in https://github.com/microsoft/graphrag/blob/main/examples_notebooks/local_search.ipynb set-up:
running:
result = await search_engine.asearch("Tell me about Agent Mercer")
results with: Error embedding chunk {'OpenAIEmbedding': "Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}"}Expected Behavior
Answer to the question (no error)
GraphRAG Config Used
Logs and screenshots
No response
Additional Information