Thanks for making detailed doc. While creating app using this reference,
I am facing below exception while executing code:
def store_documents(docs, embeddings😞
"""Create vector store and store documents in the vector store"""
return FAISS.from_documents(docs, embeddings)
Exception has occurred: NotFoundError
Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
httpx.HTTPStatusError: Client error '404 Resource Not Found' for url 'https://azureai8febeus.openai.azure.com/embeddings' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 During handling of the above exception, another exception occurred: File "/Users/prakash.patidar/ls/example2.py", line 83, in store_documents return FAISS.from_documents(docs, embeddings) File "/Users/prakash.patidar/ls/example2.py", line 133, in main vector_store = store_documents(docs, embeddings) File "/Users/prakash.patidar/ls/example2.py", line 143, in <module> main() openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
I have deployed ai instance in East US and created below deployments
keys and deployment name etc looks good but stil getting resource not found error. I have checked with both api versions here in value and comment both
AZURE_OPENAI_API_VERSION = '2023-12-01-preview' # '2023-08-01-preview'.
Any help will be highly appriciated
pip list in my case :
Package Version
------------------- ----------
aiohttp 3.9.3
aiosignal 1.3.1
annotated-types 0.6.0
anyio 4.2.0
async-timeout 4.0.3
attrs 23.2.0
certifi 2024.2.2
charset-normalizer 3.3.2
dataclasses-json 0.6.4
distro 1.9.0
exceptiongroup 1.2.0
faiss-cpu 1.7.4
frozenlist 1.4.1
h11 0.14.0
httpcore 1.0.3
httpx 0.26.0
idna 3.6
jsonpatch 1.33
jsonpointer 2.4
langchain 0.1.7
langchain-community 0.0.20
langchain-core 0.1.23
langsmith 0.0.87
marshmallow 3.20.2
multidict 6.0.5
mypy-extensions 1.0.0
numpy 1.26.4
openai 1.12.0
packaging 23.2
pip 22.2.1
pydantic 2.6.1
pydantic_core 2.16.2
PyYAML 6.0.1
regex 2023.12.25
requests 2.31.0
setuptools 63.2.0
sniffio 1.3.0
SQLAlchemy 2.0.27
tenacity 8.2.3
tiktoken 0.6.0
tqdm 4.66.2
typing_extensions 4.9.0
typing-inspect 0.9.0
urllib3 2.2.0
yarl 1.9.4